summaryrefslogtreecommitdiffstats
path: root/usr.bin/mkstr
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-06-06 12:39:00 +0000
committerbapt <bapt@FreeBSD.org>2015-06-06 12:39:00 +0000
commitb1936bdf89849ce406a229c318ee0124064560e3 (patch)
tree91bb3c5247876c710bdba51e7303131e897b70e4 /usr.bin/mkstr
parentf16e9cfbf7f85f14888d6ac5cf88b68efd78547a (diff)
downloadFreeBSD-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/Makefile2
-rw-r--r--usr.bin/mkstr/mkstr.c6
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;
OpenPOWER on IntegriCloud