From: Richard P. Curnow Date: Fri, 14 Apr 2006 23:10:21 +0000 (+0100) Subject: Remove volatile keyword from function declarations X-Git-Tag: mandriva-1.22~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e7e7d3231221a3e34cde48d6634b4ae8ffbe5e6;p=thirdparty%2Fchrony.git Remove volatile keyword from function declarations This silences a lot of gcc-4 compile warnings --- diff --git a/logging.c b/logging.c index e5438e66..d432762f 100644 --- a/logging.c +++ b/logging.c @@ -116,7 +116,7 @@ LOG_Line_Function(LOG_Severity severity, LOG_Facility facility, const char *form /* ================================================== */ -volatile void +void LOG_Fatal_Function(LOG_Facility facility, const char *format, ...) { char buf[2048]; diff --git a/logging.h b/logging.h index 33a792dc..6e73dbb6 100644 --- a/logging.h +++ b/logging.h @@ -77,7 +77,7 @@ extern void LOG_Finalise(void); extern void LOG_Line_Function(LOG_Severity severity, LOG_Facility facility, const char *format, ...); /* Logging function for fatal errors */ -extern volatile void LOG_Fatal_Function(LOG_Facility facility, const char *format, ...); +extern void LOG_Fatal_Function(LOG_Facility facility, const char *format, ...); /* Position in code reporting function */ extern void LOG_Position(const char *filename, int line_number, const char *function_name); diff --git a/main.c b/main.c index 09b87d50..18312e02 100644 --- a/main.c +++ b/main.c @@ -74,7 +74,7 @@ delete_pidfile(void) /* ================================================== */ -volatile void +void MAI_CleanupAndExit(void) { if (!initialised) exit(0); diff --git a/main.h b/main.h index aaf071a1..4bbaf1de 100644 --- a/main.h +++ b/main.h @@ -32,7 +32,7 @@ #define GOT_MAIN_H /* Function to clean up at end of run */ -extern volatile void MAI_CleanupAndExit(void); +extern void MAI_CleanupAndExit(void); #endif /* GOT_MAIN_H */