From af31e8843c2cc0ba388a33f341de8da1b50de433 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 19 Oct 2012 14:49:42 +0000 Subject: More -Wmissing-variable-declarations fixes. In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'. --- usr.sbin/nfscbd/nfscbd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/nfscbd/nfscbd.c') diff --git a/usr.sbin/nfscbd/nfscbd.c b/usr.sbin/nfscbd/nfscbd.c index ba09311..c9153b4 100644 --- a/usr.sbin/nfscbd/nfscbd.c +++ b/usr.sbin/nfscbd/nfscbd.c @@ -66,12 +66,12 @@ __FBSDID("$FreeBSD$"); /* Global defs */ #ifdef DEBUG #define syslog(e, s) fprintf(stderr,(s)) -int debug = 1; +static int debug = 1; #else -int debug = 0; +static int debug = 0; #endif -pid_t children; +static pid_t children; static void nonfs(int); static void reapchild(int); -- cgit v1.1