diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 21:06:20 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-12-03 21:06:20 +0000 |
commit | fc0ee8a40b954c0928df0016d1dcca54a30433bd (patch) | |
tree | ea3912e630c896504922fe0f713c0e7afd47d70e /usr.bin/mkstr | |
parent | ffd5084704c1d32632dc8fbb32aa7afc514bd3cc (diff) | |
download | FreeBSD-src-fc0ee8a40b954c0928df0016d1dcca54a30433bd.zip FreeBSD-src-fc0ee8a40b954c0928df0016d1dcca54a30433bd.tar.gz |
Warns cleanup. Add FreeBSD ID to Makefile.
Diffstat (limited to 'usr.bin/mkstr')
-rw-r--r-- | usr.bin/mkstr/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/mkstr/mkstr.c | 14 |
2 files changed, 9 insertions, 7 deletions
diff --git a/usr.bin/mkstr/Makefile b/usr.bin/mkstr/Makefile index c8af4d8..75ce758 100644 --- a/usr.bin/mkstr/Makefile +++ b/usr.bin/mkstr/Makefile @@ -1,5 +1,7 @@ +# $FreeBSD$ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= mkstr +WARNS?= 2 .include <bsd.prog.mk> diff --git a/usr.bin/mkstr/mkstr.c b/usr.bin/mkstr/mkstr.c index a0db889..b7d486f 100644 --- a/usr.bin/mkstr/mkstr.c +++ b/usr.bin/mkstr/mkstr.c @@ -85,7 +85,7 @@ void copystr __P((void)); int fgetNUL __P((char *, int, FILE *)); unsigned hashit __P((char *, char, unsigned)); void inithash __P((void)); -int match __P((char *)); +int match __P((const char *)); int octdigit __P((char)); void process __P((void)); static void usage __P((void)); @@ -135,7 +135,7 @@ usage() void process() { - register c; + int c; for (;;) { c = getchar(); @@ -158,10 +158,10 @@ process() int match(ocp) - char *ocp; + const char *ocp; { - register char *cp; - register c; + const char *cp; + int c; for (cp = ocp + 1; *cp; cp++) { c = getchar(); @@ -178,7 +178,7 @@ match(ocp) void copystr() { - register c, ch; + int c, ch; char buf[512]; register char *cp = buf; @@ -324,7 +324,7 @@ fgetNUL(obuf, rmdr, file) register int rmdr; FILE *file; { - register c; + int c; register char *buf = obuf; while (--rmdr > 0 && (c = getc(file)) != 0 && c != EOF) |