Warns cleanups, add FreeBSD IDs.
This commit is contained in:
parent
73f631edfa
commit
586ffa2e8a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87295
@ -1,5 +1,7 @@
|
||||
# $FreeBSD$
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/9/93
|
||||
|
||||
PROG= rev
|
||||
WARNS?= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -31,14 +31,18 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static const char copyright[] =
|
||||
"@(#) Copyright (c) 1987, 1992, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)rev.c 8.3 (Berkeley) 5/4/95";
|
||||
static const char sccsid[] = "@(#)rev.c 8.3 (Berkeley) 5/4/95";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -57,7 +61,7 @@ main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
register char *filename, *p, *t;
|
||||
const char *filename, *p, *t;
|
||||
FILE *fp;
|
||||
size_t len;
|
||||
int ch, rval;
|
||||
|
Loading…
Reference in New Issue
Block a user