From bf70becee6ff4798acdcfd586a88ad38b7b17495 Mon Sep 17 00:00:00 2001 From: Ed Schouten 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/pmccontrol/pmccontrol.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'usr.sbin/pmccontrol') diff --git a/usr.sbin/pmccontrol/pmccontrol.c b/usr.sbin/pmccontrol/pmccontrol.c index bc0ebdccfd55..b3585d042d13 100644 --- a/usr.sbin/pmccontrol/pmccontrol.c +++ b/usr.sbin/pmccontrol/pmccontrol.c @@ -66,7 +66,7 @@ __FBSDID("$FreeBSD$"); #define PMCC_PROGRAM_NAME "pmccontrol" -STAILQ_HEAD(pmcc_op_list, pmcc_op) head = STAILQ_HEAD_INITIALIZER(head); +static STAILQ_HEAD(pmcc_op_list, pmcc_op) head = STAILQ_HEAD_INITIALIZER(head); struct pmcc_op { char op_cpu; @@ -94,7 +94,7 @@ static char usage_message[] = " " PMCC_PROGRAM_NAME " [-e pmc | -d pmc | -c cpu] ..."; #if DEBUG -FILE *debug_stream = NULL; +static FILE *debug_stream = NULL; #endif #if DEBUG @@ -104,15 +104,6 @@ FILE *debug_stream = NULL; #define DEBUG_MSG(m) /* */ #endif /* !DEBUG */ -int pmc_syscall = -1; - -#define PMC_CALL(cmd, params) \ -if ((error = syscall(pmc_syscall, PMC_OP_##cmd, (params))) != 0) \ -{ \ - DEBUG_MSG("ERROR: syscall [" #cmd "]"); \ - exit(EX_OSERR); \ -} - #if DEBUG /* log debug messages to a separate file */ static void -- cgit v1.2.3