From 162142b7930248d83a77e8d8f4eba5896d5b267a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 24 Nov 2019 16:36:20 +0100 Subject: Cleanup libsquashfs invalid argument error codes - Add an explicit "you're holding it wrong" error code. - Consistently return error codes and not have some special places where -1 is returned. Signed-off-by: David Oberhollenzer --- lib/sqfs/xattr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqfs/xattr.c') diff --git a/lib/sqfs/xattr.c b/lib/sqfs/xattr.c index 6ce6b9a..909a9a5 100644 --- a/lib/sqfs/xattr.c +++ b/lib/sqfs/xattr.c @@ -7,6 +7,7 @@ #define SQFS_BUILDING_DLL #include "config.h" #include "sqfs/xattr.h" +#include "sqfs/error.h" #include @@ -32,7 +33,7 @@ int sqfs_get_xattr_prefix_id(const char *key) } } - return -1; + return SQFS_ERROR_UNSUPPORTED; } const char *sqfs_get_xattr_prefix(E_SQFS_XATTR_TYPE id) -- cgit v1.2.3