summaryrefslogtreecommitdiff
path: root/usr.sbin/watchdogd
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2010-07-20 17:42:13 +0000
committerXin LI <delphij@FreeBSD.org>2010-07-20 17:42:13 +0000
commitd10d35b3690b8fdf74537ca32536c4f30dc0308f (patch)
tree3ecf72217402fc40291897ee383721251ae86180 /usr.sbin/watchdogd
parentffd1746d03050a5dda43948e33d10e5fcf9179de (diff)
downloadsrc-test2-d10d35b3690b8fdf74537ca32536c4f30dc0308f.tar.gz
src-test2-d10d35b3690b8fdf74537ca32536c4f30dc0308f.zip
Notes
Diffstat (limited to 'usr.sbin/watchdogd')
-rw-r--r--usr.sbin/watchdogd/watchdogd.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c
index 073affd71c2a..4b58caf3889e 100644
--- a/usr.sbin/watchdogd/watchdogd.c
+++ b/usr.sbin/watchdogd/watchdogd.c
@@ -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)
{