Fix some trivial warnings and clamp down with WARNS=2

MFC after:	1 week
This commit is contained in:
Kris Kennaway 2001-05-26 22:39:33 +00:00
parent 5f0e809ac0
commit 16dd925f16
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77247
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
PROG= touch
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -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 *));