From 664c417af5d16e217557468ba747a369e8e1ab6b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 7 Feb 2021 17:19:44 -0600 Subject: Add lots of "static" annotations, make a couple things use FLAG() macros, etc. --- toys/other/watchdog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toys/other/watchdog.c') diff --git a/toys/other/watchdog.c b/toys/other/watchdog.c index 232d82c0..0402d3ee 100644 --- a/toys/other/watchdog.c +++ b/toys/other/watchdog.c @@ -29,7 +29,8 @@ GLOBALS( int fd; ) -void safe_shutdown(int ignored) { +static void safe_shutdown(int ignored) +{ write(TT.fd, "V", 1); close(TT.fd); error_exit("safely exited watchdog."); -- cgit v1.2.3