svn commit: r284063 - head/usr.bin/mkstr

Baptiste Daroussin bapt at FreeBSD.org
Sat Jun 6 12:39:01 UTC 2015


Author: bapt
Date: Sat Jun  6 12:39:00 2015
New Revision: 284063
URL: https://svnweb.freebsd.org/changeset/base/284063

Log:
  Make global variables static
  Remove WARNS from Makefile

Modified:
  head/usr.bin/mkstr/Makefile
  head/usr.bin/mkstr/mkstr.c

Modified: head/usr.bin/mkstr/Makefile
==============================================================================
--- head/usr.bin/mkstr/Makefile	Sat Jun  6 12:34:59 2015	(r284062)
+++ head/usr.bin/mkstr/Makefile	Sat Jun  6 12:39:00 2015	(r284063)
@@ -3,6 +3,4 @@
 
 PROG=	mkstr
 
-WARNS?=	2
-
 .include <bsd.prog.mk>

Modified: head/usr.bin/mkstr/mkstr.c
==============================================================================
--- head/usr.bin/mkstr/mkstr.c	Sat Jun  6 12:34:59 2015	(r284062)
+++ head/usr.bin/mkstr/mkstr.c	Sat Jun  6 12:39:00 2015	(r284063)
@@ -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;


More information about the svn-src-head mailing list