From 1fbc22f5ed8dff44ef40e1fca0a2e2a398f831a2 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sat, 6 Jun 2015 12:39:00 +0000 Subject: [PATCH] Make global variables static Remove WARNS from Makefile --- usr.bin/mkstr/Makefile | 2 -- 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 b4e36209ffcd..805c013d4a97 100644 --- a/usr.bin/mkstr/Makefile +++ b/usr.bin/mkstr/Makefile @@ -3,6 +3,4 @@ PROG= mkstr -WARNS?= 2 - .include diff --git a/usr.bin/mkstr/mkstr.c b/usr.bin/mkstr/mkstr.c index 9f64d0ccd1a1..2025effb98e4 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;