diff options
author | bapt <bapt@FreeBSD.org> | 2015-06-06 12:39:00 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-06-06 12:39:00 +0000 |
commit | b1936bdf89849ce406a229c318ee0124064560e3 (patch) | |
tree | 91bb3c5247876c710bdba51e7303131e897b70e4 /usr.bin/mkstr | |
parent | f16e9cfbf7f85f14888d6ac5cf88b68efd78547a (diff) | |
download | FreeBSD-src-b1936bdf89849ce406a229c318ee0124064560e3.zip FreeBSD-src-b1936bdf89849ce406a229c318ee0124064560e3.tar.gz |
Make global variables static
Remove WARNS from Makefile
Diffstat (limited to 'usr.bin/mkstr')
-rw-r--r-- | usr.bin/mkstr/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/mkstr/mkstr.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/mkstr/Makefile b/usr.bin/mkstr/Makefile index b4e3620..805c013 100644 --- a/usr.bin/mkstr/Makefile +++ b/usr.bin/mkstr/Makefile @@ -3,6 +3,4 @@ PROG= mkstr -WARNS?= 2 - .include <bsd.prog.mk> diff --git a/usr.bin/mkstr/mkstr.c b/usr.bin/mkstr/mkstr.c index 9f64d0cc..2025eff 100644 --- a/usr.bin/mkstr/mkstr.c +++ b/usr.bin/mkstr/mkstr.c @@ -76,8 +76,8 @@ __FBSDID("$FreeBSD$"); * existing error message file for recompilation of single routines. */ -FILE *mesgread, *mesgwrite; -char name[100], *np; +static FILE *mesgread, *mesgwrite; +static char name[100], *np; void copystr(void); int fgetNUL(char *, int, FILE *); @@ -267,7 +267,7 @@ inithash(void) #define NBUCKETS 511 -struct hash { +static struct hash { long hval; unsigned hpt; struct hash *hnext; |