diff options
Diffstat (limited to 'contrib/sendmail/mailstats/mailstats.c')
-rw-r--r-- | contrib/sendmail/mailstats/mailstats.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/sendmail/mailstats/mailstats.c b/contrib/sendmail/mailstats/mailstats.c index 56e9357..55a7b96 100644 --- a/contrib/sendmail/mailstats/mailstats.c +++ b/contrib/sendmail/mailstats/mailstats.c @@ -18,7 +18,7 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)mailstats.c 8.29 (Berkeley) 1/25/1999"; +static char sccsid[] = "@(#)mailstats.c 8.28 (Berkeley) 9/14/1998"; #endif /* not lint */ #ifndef NOT_SENDMAIL @@ -58,7 +58,7 @@ main(argc, argv) sfile = NULL; mnames = TRUE; progmode = FALSE; - while ((ch = getopt(argc, argv, "C:f:op")) != EOF) + while ((ch = getopt(argc, argv, "C:f:op")) != -1) { switch (ch) { @@ -84,10 +84,10 @@ main(argc, argv) default: usage: #if _FFR_MAILSTATS_PROGMODE - fputs("usage: mailstats [-C cffile] [-f stfile] -o -p\n", + fputs("usage: mailstats [-o] [-C cffile] [-f stfile] -o -p\n", stderr); #else - fputs("usage: mailstats [-C cffile] [-f stfile] -o \n", + fputs("usage: mailstats [-o] [-C cffile] [-f stfile] -o \n", stderr); #endif exit(EX_USAGE); @@ -283,7 +283,7 @@ main(argc, argv) frmsgs, frbytes, tomsgs, tobytes, rejmsgs, dismsgs); close(fd); fd = open(sfile, O_RDWR | O_TRUNC); - if (fd >= 0) + if (fd > 0) close(fd); } else |