Date: Tue, 20 Jul 2010 17:42:13 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r210300 - head/usr.sbin/watchdogd Message-ID: <201007201742.o6KHgDa2063251@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Tue Jul 20 17:42:13 2010 New Revision: 210300 URL: http://svn.freebsd.org/changeset/base/210300 Log: Staticify local variables. While I'm there also add a 'static' keyword for a function to make it consistent with prototype. Reviewed by: phk MFC after: 3 months Modified: head/usr.sbin/watchdogd/watchdogd.c Modified: head/usr.sbin/watchdogd/watchdogd.c ============================================================================== --- head/usr.sbin/watchdogd/watchdogd.c Tue Jul 20 17:16:57 2010 (r210299) +++ head/usr.sbin/watchdogd/watchdogd.c Tue Jul 20 17:42:13 2010 (r210300) @@ -1,4 +1,4 @@ -/* +/*- * Copyright (c) 2003-2004 Sean M. Kelly <smkelly@FreeBSD.org> * All rights reserved. * @@ -58,17 +58,15 @@ static int watchdog_onoff(int onoff); static int watchdog_patpat(u_int timeout); static void usage(void); -int debugging = 0; -int end_program = 0; -const char *pidfile = _PATH_VARRUN "watchdogd.pid"; -int reset_mib[3]; -size_t reset_miblen = 3; -u_int timeout = WD_TO_16SEC; -u_int passive = 0; -int is_daemon = 0; -int fd = -1; -int nap = 1; -char *test_cmd = NULL; +static int debugging = 0; +static int end_program = 0; +static const char *pidfile = _PATH_VARRUN "watchdogd.pid"; +static u_int timeout = WD_TO_16SEC; +static u_int passive = 0; +static int is_daemon = 0; +static int fd = -1; +static int nap = 1; +static char *test_cmd = NULL; /* * Periodically pat the watchdog, preventing it from firing. @@ -195,7 +193,7 @@ watchdog_loop(void) * Reset the watchdog timer. This function must be called periodically * to keep the watchdog from firing. */ -int +static int watchdog_patpat(u_int t) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007201742.o6KHgDa2063251>