diff options
author | 2008-10-03 19:37:44 +0000 | |
---|---|---|
committer | 2008-10-03 19:37:44 +0000 | |
commit | eb67d4103786ced5d0d4de93ec89c60f21ce7a3a (patch) | |
tree | 886fad27d561cfda648923b3645e3205963ab2c3 /usr.sbin/httpd/src | |
parent | KNF and readability changes; no binary changes. (diff) | |
download | wireguard-openbsd-eb67d4103786ced5d0d4de93ec89c60f21ce7a3a.tar.xz wireguard-openbsd-eb67d4103786ced5d0d4de93ec89c60f21ce7a3a.zip |
Readability changes.
Diffstat (limited to 'usr.sbin/httpd/src')
-rw-r--r-- | usr.sbin/httpd/src/support/rotatelogs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/httpd/src/support/rotatelogs.c b/usr.sbin/httpd/src/support/rotatelogs.c index 118f08d3cf5..fa1c26d0697 100644 --- a/usr.sbin/httpd/src/support/rotatelogs.c +++ b/usr.sbin/httpd/src/support/rotatelogs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rotatelogs.c,v 1.8 2008/05/23 12:12:01 mbalmer Exp $ */ +/* $OpenBSD: rotatelogs.c,v 1.9 2008/10/03 19:37:44 mbalmer Exp $ */ /* * Simple program to rotate Apache logs without having to kill the server. @@ -21,7 +21,7 @@ #endif int -main(int argc, char **argv) +main(int argc, char *argv[]) { char buf[BUFSIZE], buf2[MAX_PATH], errbuf[ERRMSGSZ]; time_t tLogEnd = 0, tRotation; @@ -31,7 +31,6 @@ main(int argc, char **argv) time_t now; char *szLogRoot; - if (argc < 3) { fprintf(stderr, "usage: %s logfile rotationtime [offset]\n\n", argv[0]); @@ -120,6 +119,7 @@ main(int argc, char **argv) } else nMessCount++; } + /* We never get here, but suppress the compile warning */ - return (0); + return 0; } |