diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-01-04 01:36:34 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-01-04 01:36:34 +0100 |
commit | 47cd5a8433d9f22718f54fa52d545a4cda369af0 (patch) | |
tree | c95477b1845d0f23294aba6310d4235158b89f8b | |
parent | 4e1269dc6d92b88d5302893f74eb8997b192b828 (diff) |
Marked ShutDown() '__dead'
-rw-r--r-- | FICS/shutdown.c | 2 | ||||
-rw-r--r-- | FICS/shutdown.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/FICS/shutdown.c b/FICS/shutdown.c index 2fe7197..861c9fe 100644 --- a/FICS/shutdown.c +++ b/FICS/shutdown.c @@ -28,7 +28,7 @@ output_shut_mess(void) fprintf(stderr, "FICS: Shutting down at %s\n", strltime(&shuttime)); } -PUBLIC void +PUBLIC __dead void ShutDown(void) { time_t shuttime = time(NULL); diff --git a/FICS/shutdown.h b/FICS/shutdown.h index 765ea36..8728ecb 100644 --- a/FICS/shutdown.h +++ b/FICS/shutdown.h @@ -4,13 +4,15 @@ #define _SHUTDOWN_H #include "command.h" /* param_list */ +#include "common.h" /* __dead */ extern int check_and_print_shutdown(int); extern int com_shutdown(int, param_list); extern int com_whenshut(int, param_list); extern int server_shutdown(int, char *); -extern void ShutDown(void); +extern __dead void ShutDown(void); + extern void ShutHeartBeat(void); extern void output_shut_mess(void); |