Date: Sat, 6 Jun 2015 12:39:00 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284063 - head/usr.bin/mkstr Message-ID: <201506061239.t56Cd0U4016445@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506061239.t56Cd0U4016445>