tools/misc: xenwatchdogd: add static qualifier

Make all functions except main() static in xenwatchdogd.c. Also make
the remaining global variable static.

Signed-off-by: Leigh Brown <leigh@solinno.co.uk>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
This commit is contained in:
Leigh Brown authored and Andrew Cooper committed 2024-04-11 14:16:53 +01:00
1 parent 5d09f8cbdc
commit 86c008aa5d
1 file changed
+4 -4
+4 -4
View File
@@ -11,11 +11,11 @@
#include <stdio.h>
#include <stdbool.h>
xc_interface *h;
static xc_interface *h;
static volatile bool safeexit = false;
static volatile 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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.