From b0dfc691e79ad10ecb87dfac4070a48b010adb6f Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 23 Oct 2018 16:41:27 +0200 Subject: [PATCH] Fix compiler warnings jcc.c:1012:27: warning: implicit conversion changes signedness: 'jb_err' (aka 'enum privoxy_err') to 'int' [-Wsign-conversion] jb_err_to_string(err)); ~~~~~~~~~~~~~~~~ ^~~ jcc.c:1721:45: warning: implicit conversion changes signedness: 'jb_err' (aka 'enum privoxy_err') to 'int' [-Wsign-conversion] csp->ip_addr_str, jb_err_to_string(err)); ~~~~~~~~~~~~~~~~ ^~~ --- errlog.c | 2 +- errlog.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/errlog.c b/errlog.c index 21e062db..df5d09c9 100644 --- a/errlog.c +++ b/errlog.c @@ -974,7 +974,7 @@ void log_error(int loglevel, const char *fmt, ...) * Returns : A string with the jb_err translation * *********************************************************************/ -const char *jb_err_to_string(int jb_error) +const char *jb_err_to_string(jb_err jb_error) { switch (jb_error) { diff --git a/errlog.h b/errlog.h index 9abaad39..a5ae62b2 100644 --- a/errlog.h +++ b/errlog.h @@ -75,7 +75,7 @@ extern void disable_logging(void); extern void init_log_module(void); extern void show_version(const char *prog_name); extern void log_error(int loglevel, const char *fmt, ...); -extern const char *jb_err_to_string(int jb_error); +extern const char *jb_err_to_string(jb_err jb_error); #endif /* ndef ERRLOG_H_INCLUDED */ -- 2.39.2