aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/touch
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-05-26 22:39:33 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-05-26 22:39:33 +0000
commit16dd925f160c87319522740033c9164166b19d31 (patch)
treeb0eb66990888b66afbf87d2cd1112cda5a5b1127 /usr.bin/touch
parent5f0e809ac02195e33d8e0358acac669058fdd0c6 (diff)
Notes
Diffstat (limited to 'usr.bin/touch')
-rw-r--r--usr.bin/touch/Makefile2
-rw-r--r--usr.bin/touch/touch.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/touch/Makefile b/usr.bin/touch/Makefile
index 5c153b3357a4..293616589dd0 100644
--- a/usr.bin/touch/Makefile
+++ b/usr.bin/touch/Makefile
@@ -1,5 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
+# $FreeBSD$
PROG= touch
+WARNS?= 2
.include <bsd.prog.mk>
diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c
index b56b05f4cd6c..f8e6cce2c3ef 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 *));