Use errx() instead of fprintf() like the rest of the options. Originally noticed because of the missing '\' for the newline.

Index: spamd.c
===================================================================
RCS file: /cvs/src/libexec/spamd/spamd.c,v
retrieving revision 1.150
diff -u -p -u -r1.150 spamd.c
--- spamd.c     23 Jan 2017 09:21:04 -0000      1.150
+++ spamd.c     6 Apr 2017 13:18:09 -0000
@@ -1287,8 +1287,7 @@ main(int argc, char *argv[])
                case 'c':
                        maxcon = strtonum(optarg, 1, maxfiles, &errstr);
                        if (errstr) {
- fprintf(stderr, "-c %s: %sn", optarg, errstr);
-                               usage();
+                               errx(1, "-c %s: %s", optarg, errstr);
                        }
                        break;
                case 'p':

Reply via email to