diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-08 04:33:21 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-08 04:33:21 (GMT) |
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 f36834f..9dc2654 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
@@ -16,16 +16,16 @@ suite of plugins. */ | |||
16 | void support (void); | 16 | void support (void); |
17 | char *clean_revstring (const char *revstring); | 17 | char *clean_revstring (const char *revstring); |
18 | void print_revision (const char *, const char *); | 18 | void print_revision (const char *, const char *); |
19 | void die (int result, const char *fmt, ...); | 19 | void die (int result, const char *fmt, ...) __attribute__((noreturn)); |
20 | 20 | ||
21 | /* Handle timeouts */ | 21 | /* Handle timeouts */ |
22 | 22 | ||
23 | #ifdef LOCAL_TIMEOUT_ALARM_HANDLER | 23 | #ifdef LOCAL_TIMEOUT_ALARM_HANDLER |
24 | extern int timeout_interval; | 24 | extern unsigned int timeout_interval; |
25 | RETSIGTYPE timeout_alarm_handler (int); | 25 | RETSIGTYPE timeout_alarm_handler (int) __attribute__((noreturn)); |
26 | #else | 26 | #else |
27 | int timeout_interval = DEFAULT_SOCKET_TIMEOUT; | 27 | unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; |
28 | extern RETSIGTYPE timeout_alarm_handler (int); | 28 | extern RETSIGTYPE timeout_alarm_handler (int) __attribute__((noreturn)); |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | time_t start_time, end_time; | 31 | time_t start_time, end_time; |
@@ -72,9 +72,9 @@ char *strpcat (char *dest, const char *src, const char *str); | |||
72 | 72 | ||
73 | int max_state (int a, int b); | 73 | int max_state (int a, int b); |
74 | 74 | ||
75 | void usage (char *msg); | 75 | void usage (char *msg) __attribute__((noreturn)); |
76 | void usage2(char *msg, char *arg); | 76 | void usage2(char *msg, char *arg) __attribute__((noreturn)); |
77 | void usage3(char *msg, char arg); | 77 | void usage3(char *msg, char arg) __attribute__((noreturn)); |
78 | 78 | ||
79 | char *state_text (int result); | 79 | char *state_text (int result); |
80 | 80 | ||