diff options
author | kris <kris@FreeBSD.org> | 2001-05-26 22:39:33 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-05-26 22:39:33 +0000 |
commit | ddc5c054787f20c6e18babdd32a9d962ae6df0c2 (patch) | |
tree | 404b1fb1f4260dcbaab29fae82be61186ee6b364 /usr.bin/touch/touch.c | |
parent | fa1f42013f23f735897974aaf3221003cb928a84 (diff) | |
download | FreeBSD-src-ddc5c054787f20c6e18babdd32a9d962ae6df0c2.zip FreeBSD-src-ddc5c054787f20c6e18babdd32a9d962ae6df0c2.tar.gz |
Fix some trivial warnings and clamp down with WARNS=2
MFC after: 1 week
Diffstat (limited to 'usr.bin/touch/touch.c')
-rw-r--r-- | usr.bin/touch/touch.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c index b56b05f..f8e6cce 100644 --- a/usr.bin/touch/touch.c +++ b/usr.bin/touch/touch.c @@ -32,13 +32,17 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)touch.c 8.1 (Berkeley) 6/6/93"; +#if 0 +static const char sccsid[] = "@(#)touch.c 8.1 (Berkeley) 6/6/93"; +#endif +static const char rcsid[] = + "$FreeBSD$"; #endif /* not lint */ #include <sys/types.h> @@ -54,6 +58,7 @@ static char sccsid[] = "@(#)touch.c 8.1 (Berkeley) 6/6/93"; #include <time.h> #include <unistd.h> +int main __P((int, char *[])); int rw __P((char *, struct stat *, int)); void stime_arg1 __P((char *, struct timeval *)); void stime_arg2 __P((char *, int, struct timeval *)); |