From 058fcaed27504aba4f2b4fcfeb93fdc50f6d7c1c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 2 Sep 2014 06:22:12 +0200 Subject: LIBGAMMA_ERRNO_SET should have value -1 functions returning -1 on error can be parsed as if they returned a libgamma error code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/lib/libgamma-error.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/lib/libgamma-error.h b/src/lib/libgamma-error.h index 7e8dd2d..72c707d 100644 --- a/src/lib/libgamma-error.h +++ b/src/lib/libgamma-error.h @@ -50,16 +50,16 @@ extern const char* libgamma_group_name; /** - * The selected adjustment method does not exist - * or has been excluded at compile-time. + * `errno` has be set with a standard error number + * to indicate the what has gone wrong. */ -#define LIBGAMMA_NO_SUCH_ADJUSTMENT_METHOD (-1) +#define LIBGAMMA_ERRNO_SET (-1) /** - * `errno` has be set with a standard error number - * to indicate the what has gone wrong. + * The selected adjustment method does not exist + * or has been excluded at compile-time. */ -#define LIBGAMMA_ERRNO_SET (-2) +#define LIBGAMMA_NO_SUCH_ADJUSTMENT_METHOD (-2) /** * The selected site does not exist. -- cgit v1.2.3-70-g09d2