From f52513b09580c1533e6c48a4162d3d5f61f3b081 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Mar 2021 18:23:13 +0100 Subject: misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libgamma_value_of_error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgamma_value_of_error.c') diff --git a/libgamma_value_of_error.c b/libgamma_value_of_error.c index 6d2f878..41ca40f 100644 --- a/libgamma_value_of_error.c +++ b/libgamma_value_of_error.c @@ -6,7 +6,7 @@ * Get the value of a `libgamma` error definition refered to by name * * @param name The name of the definition associated with the error code - * @return The error code, zero if the name does is `NULL` + * @return The error code, zero if the name is `NULL` * or does not refer to a `libgamma` error */ int @@ -14,7 +14,7 @@ libgamma_value_of_error(const char *name) { if (!name) return 0; -#define X(NAME, DESC)\ +#define X(NAME, ...)\ if (!strcmp(name, #NAME))\ return NAME; LIST_ERRORS(X) -- cgit v1.2.3-70-g09d2