[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v2 3/6] tools/misc: xenwatchdogd: add static qualifier
From: Leigh Brown <leigh@xxxxxxxxxxxxx> Make all functions except main() static in xenwatchdogd.c. Also make the remaining global variable static. Signed-off-by: Leigh Brown <leigh@xxxxxxxxxxxxx> --- tools/misc/xenwatchdogd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/misc/xenwatchdogd.c b/tools/misc/xenwatchdogd.c index 35a0df655a..2e7f9f51c5 100644 --- a/tools/misc/xenwatchdogd.c +++ b/tools/misc/xenwatchdogd.c @@ -11,11 +11,11 @@ #include <stdio.h> #include <stdbool.h> -xc_interface *h; +static xc_interface *h; static bool safeexit = false; static bool done = false; -void daemonize(void) +static void daemonize(void) { switch (fork()) { case -1: @@ -38,12 +38,12 @@ void daemonize(void) err(EXIT_FAILURE, "reopen stderr"); } -void catch_exit(int sig) +static void catch_exit(int sig) { done = true; } -void catch_usr1(int sig) +static void catch_usr1(int sig) { safeexit = true; done = true; -- 2.39.2
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |