Make global variables static
Remove WARNS from Makefile
This commit is contained in:
parent
f16e9cfbf7
commit
b1936bdf89
@ -3,6 +3,4 @@
|
||||
|
||||
PROG= mkstr
|
||||
|
||||
WARNS?= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user