diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-08 04:33:21 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-08 04:33:21 +0000 |
commit | 65ca899d2c98b6342783922a5709c4b61e6b2b1f (patch) | |
tree | 81bff537f3ba725e1d214d548199868572baf76b /plugins/utils.h | |
parent | 92cd137176830bcdfbd477f151ba22d456b2e31c (diff) | |
download | monitoring-plugins-65ca899d2c98b6342783922a5709c4b61e6b2b1f.tar.gz |
fix a variety of compiler warnings about qualifier discards and other pedantic stuff
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@662 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils.h')
-rw-r--r-- | plugins/utils.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/utils.h b/plugins/utils.h index f36834f9..9dc2654c 100644 --- a/plugins/utils.h +++ b/plugins/utils.h @@ -16,16 +16,16 @@ suite of plugins. */ void support (void); char *clean_revstring (const char *revstring); void print_revision (const char *, const char *); -void die (int result, const char *fmt, ...); +void die (int result, const char *fmt, ...) __attribute__((noreturn)); /* Handle timeouts */ #ifdef LOCAL_TIMEOUT_ALARM_HANDLER -extern int timeout_interval; -RETSIGTYPE timeout_alarm_handler (int); +extern unsigned int timeout_interval; +RETSIGTYPE timeout_alarm_handler (int) __attribute__((noreturn)); #else -int timeout_interval = DEFAULT_SOCKET_TIMEOUT; -extern RETSIGTYPE timeout_alarm_handler (int); +unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; +extern RETSIGTYPE timeout_alarm_handler (int) __attribute__((noreturn)); #endif time_t start_time, end_time; @@ -72,9 +72,9 @@ char *strpcat (char *dest, const char *src, const char *str); int max_state (int a, int b); -void usage (char *msg); -void usage2(char *msg, char *arg); -void usage3(char *msg, char arg); +void usage (char *msg) __attribute__((noreturn)); +void usage2(char *msg, char *arg) __attribute__((noreturn)); +void usage3(char *msg, char arg) __attribute__((noreturn)); char *state_text (int result); |