summaryrefslogtreecommitdiff
path: root/usr.sbin/newsyslog
diff options
context:
space:
mode:
authorMaxim Konovalov <maxim@FreeBSD.org>2002-05-03 21:03:37 +0000
committerMaxim Konovalov <maxim@FreeBSD.org>2002-05-03 21:03:37 +0000
commitcc37581539dad4680eba18342b27c4410bded7e5 (patch)
tree718999ef4f0cf0792d143e6a3a2393885920475a /usr.sbin/newsyslog
parent70e01b9a56d58206a9692e5307afdf1a1b4b0588 (diff)
downloadsrc-test2-cc37581539dad4680eba18342b27c4410bded7e5.tar.gz
src-test2-cc37581539dad4680eba18342b27c4410bded7e5.zip
Notes
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r--usr.sbin/newsyslog/newsyslog.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c
index 7e178a9b068a..aa131872c8f3 100644
--- a/usr.sbin/newsyslog/newsyslog.c
+++ b/usr.sbin/newsyslog/newsyslog.c
@@ -36,6 +36,10 @@ static const char rcsid[] =
#define BZCOMPRESS_POSTFIX ".bz2"
#endif
+#include <sys/param.h>
+#include <sys/stat.h>
+#include <sys/wait.h>
+
#include <ctype.h>
#include <err.h>
#include <errno.h>
@@ -49,10 +53,6 @@ static const char rcsid[] =
#include <string.h>
#include <time.h>
#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/param.h>
-#include <sys/wait.h>
#include "pathnames.h"
@@ -944,7 +944,7 @@ parse8601(char *s, char *errline)
return -1;
}
if ((tsecs = mktime(&tm)) == -1)
- errx(1, "nonexistent time:\n%s", errline);
+ errx(1, "nonexistent time:\n%s", errline);
return tsecs;
}
@@ -1115,6 +1115,6 @@ parseDWM(char *s, char *errline)
s = t;
}
if ((tsecs = mktime(&tm)) == -1)
- errx(1, "nonexistent time:\n%s", errline);
+ errx(1, "nonexistent time:\n%s", errline);
return tsecs;
}