From 47cd5a8433d9f22718f54fa52d545a4cda369af0 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Thu, 4 Jan 2024 01:36:34 +0100 Subject: Marked ShutDown() '__dead' --- FICS/shutdown.c | 2 +- FICS/shutdown.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'FICS') 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); -- cgit v1.2.3