From: epg <> Date: Thu, 20 Apr 2006 22:55:44 +0000 (+0000) Subject: Oops, r1946 only made this exit(0) on non-fatal errors; pass -1 to X-Git-Url: https://diplodocus.org/git/mdeliver/commitdiff_plain/6bcc7209b6b0d137a4ff92acf219ccb36628c8f6 Oops, r1946 only made this exit(0) on non-fatal errors; pass -1 to _err, not 0! --- diff --git a/processor.c b/processor.c index 2ebca53..b09106e 100644 --- a/processor.c +++ b/processor.c @@ -28,8 +28,8 @@ static int flags = SPAMC_CHECK_ONLY | SPAMC_RAW_MODE; #define err(n, ...) _err(n, true, __FILE__, __LINE__, __VA_ARGS__) #define errx(n, ...) _err(n, false, __FILE__, __LINE__, __VA_ARGS__) -#define warn(...) _err(0, true, __FILE__, __LINE__, __VA_ARGS__) -#define warnx(...) _err(0, false, __FILE__, __LINE__, __VA_ARGS__) +#define warn(...) _err(-1, true, __FILE__, __LINE__, __VA_ARGS__) +#define warnx(...) _err(-1, false, __FILE__, __LINE__, __VA_ARGS__) void _err(int exitcode, bool want_strerror, char *fn, int lineno, char *format, ...)