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 --- include/sqfs/error.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/sqfs/error.h') diff --git a/include/sqfs/error.h b/include/sqfs/error.h index 9ff77d4..77e33ed 100644 --- a/include/sqfs/error.h +++ b/include/sqfs/error.h @@ -128,6 +128,11 @@ typedef enum { * a regular file or a regular file inode. */ SQFS_ERROR_NOT_FILE = -15, + + /** + * @brief An invalid argument was passed to a library function. + */ + SQFS_ERROR_ARG_INVALID = -16, } E_SQFS_ERROR; #endif /* SQFS_ERROR_H */ -- cgit v1.2.3