From 267de3dc10b4ff5bb9de73988f1b568890427b0c Mon Sep 17 00:00:00 2001 From: dwmalone Date: Mon, 3 Dec 2001 21:20:37 +0000 Subject: [PATCH] Warns cleanups, add FreeBSD IDs. --- usr.bin/rev/Makefile | 2 ++ usr.bin/rev/rev.c | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/usr.bin/rev/Makefile b/usr.bin/rev/Makefile index 1952ce98858a..ef9723fa3d01 100644 --- a/usr.bin/rev/Makefile +++ b/usr.bin/rev/Makefile @@ -1,5 +1,7 @@ +# $FreeBSD$ # @(#)Makefile 8.1 (Berkeley) 6/9/93 PROG= rev +WARNS?= 2 .include diff --git a/usr.bin/rev/rev.c b/usr.bin/rev/rev.c index 2f8241f24a58..c023d8e55e40 100644 --- a/usr.bin/rev/rev.c +++ b/usr.bin/rev/rev.c @@ -31,14 +31,18 @@ * SUCH DAMAGE. */ +#include + +__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 @@ -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;