diff options
author | Rob Landley <rob@landley.net> | 2021-02-07 17:19:44 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-02-07 17:19:44 -0600 |
commit | 664c417af5d16e217557468ba747a369e8e1ab6b (patch) | |
tree | 028aacc085207ef347fdaa9eb1ccf86d06257208 /toys/other/watchdog.c | |
parent | 9f7f62615f3963591af33fcc7582867f7063efd2 (diff) | |
download | toybox-664c417af5d16e217557468ba747a369e8e1ab6b.tar.gz |
Add lots of "static" annotations, make a couple things use FLAG() macros, etc.
Diffstat (limited to 'toys/other/watchdog.c')
-rw-r--r-- | toys/other/watchdog.c | 3 |
1 files changed, 2 insertions, 1 deletions
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."); |