diff options
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) |