]> diplodocus.org Git - mdeliver/commitdiff
Oops, r1946 only made this exit(0) on non-fatal errors; pass -1 to
authorepg <>
Thu, 20 Apr 2006 22:55:44 +0000 (22:55 +0000)
committerepg <>
Thu, 20 Apr 2006 22:55:44 +0000 (22:55 +0000)
_err, not 0!

processor.c

index 2ebca53..b09106e 100644 (file)
@@ -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, ...)