diff options
author | matteo <matteo@FreeBSD.org> | 2008-11-10 06:35:30 +0000 |
---|---|---|
committer | matteo <matteo@FreeBSD.org> | 2008-11-10 06:35:30 +0000 |
commit | 79b0ca8da7a3f9f7743f354dfd1368f99e5c49e8 (patch) | |
tree | 513f24faaa58e232d7ab9ee80f53dbfe034abe98 /usr.sbin/cron/lib | |
parent | 34001f8d263157133991d55daa841af6e46068d2 (diff) | |
download | FreeBSD-src-79b0ca8da7a3f9f7743f354dfd1368f99e5c49e8.zip FreeBSD-src-79b0ca8da7a3f9f7743f354dfd1368f99e5c49e8.tar.gz |
Make usr.sbin/cron/crontab and usr.sbin/cron/lib WARNS=3 clean
Tested with: make universe
MFC after: 3 days
Diffstat (limited to 'usr.sbin/cron/lib')
-rw-r--r-- | usr.sbin/cron/lib/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/cron/lib/entry.c | 2 | ||||
-rw-r--r-- | usr.sbin/cron/lib/misc.c | 10 |
3 files changed, 6 insertions, 8 deletions
diff --git a/usr.sbin/cron/lib/Makefile b/usr.sbin/cron/lib/Makefile index 296ebd0..5d8dcb8 100644 --- a/usr.sbin/cron/lib/Makefile +++ b/usr.sbin/cron/lib/Makefile @@ -4,6 +4,8 @@ LIB= cron INTERNALLIB= SRCS= entry.c env.c misc.c +WARNS = 3 + CFLAGS+= -I${.CURDIR}/../cron CFLAGS+= -DLOGIN_CAP -DPAM diff --git a/usr.sbin/cron/lib/entry.c b/usr.sbin/cron/lib/entry.c index df88905..b6be69c 100644 --- a/usr.sbin/cron/lib/entry.c +++ b/usr.sbin/cron/lib/entry.c @@ -87,7 +87,7 @@ free_entry(e) entry * load_entry(file, error_func, pw, envp) FILE *file; - void (*error_func)(); + void (*error_func)(char *); struct passwd *pw; char **envp; { diff --git a/usr.sbin/cron/lib/misc.c b/usr.sbin/cron/lib/misc.c index e557afc..d56c03d 100644 --- a/usr.sbin/cron/lib/misc.c +++ b/usr.sbin/cron/lib/misc.c @@ -48,6 +48,7 @@ static const char rcsid[] = static int LogFD = ERR; +void mkprint(register char*, register unsigned char*, register int); int @@ -324,9 +325,7 @@ skip_comments(file) * FALSE otherwise. */ static int -in_file(string, file) - char *string; - FILE *file; +in_file(char *string, FILE *file) { char line[MAX_TEMPSTR]; @@ -521,10 +520,7 @@ first_word(s, t) * heavily ascii-dependent. */ void -mkprint(dst, src, len) - register char *dst; - register unsigned char *src; - register int len; +mkprint(register char *dst, register unsigned char *src, register int len) { while (len-- > 0) { |