summaryrefslogtreecommitdiffstats
path: root/usr.bin/touch/touch.c
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-05-26 22:39:33 +0000
committerkris <kris@FreeBSD.org>2001-05-26 22:39:33 +0000
commitddc5c054787f20c6e18babdd32a9d962ae6df0c2 (patch)
tree404b1fb1f4260dcbaab29fae82be61186ee6b364 /usr.bin/touch/touch.c
parentfa1f42013f23f735897974aaf3221003cb928a84 (diff)
downloadFreeBSD-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.c9
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 *));
OpenPOWER on IntegriCloud