summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-08 04:33:21 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-08 04:33:21 (GMT)
commit65ca899d2c98b6342783922a5709c4b61e6b2b1f (patch)
tree81bff537f3ba725e1d214d548199868572baf76b /plugins/utils.h
parent92cd137176830bcdfbd477f151ba22d456b2e31c (diff)
downloadmonitoring-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.h16
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. */
16void support (void); 16void support (void);
17char *clean_revstring (const char *revstring); 17char *clean_revstring (const char *revstring);
18void print_revision (const char *, const char *); 18void print_revision (const char *, const char *);
19void die (int result, const char *fmt, ...); 19void 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
24extern int timeout_interval; 24extern unsigned int timeout_interval;
25RETSIGTYPE timeout_alarm_handler (int); 25RETSIGTYPE timeout_alarm_handler (int) __attribute__((noreturn));
26#else 26#else
27int timeout_interval = DEFAULT_SOCKET_TIMEOUT; 27unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT;
28extern RETSIGTYPE timeout_alarm_handler (int); 28extern RETSIGTYPE timeout_alarm_handler (int) __attribute__((noreturn));
29#endif 29#endif
30 30
31time_t start_time, end_time; 31time_t start_time, end_time;
@@ -72,9 +72,9 @@ char *strpcat (char *dest, const char *src, const char *str);
72 72
73int max_state (int a, int b); 73int max_state (int a, int b);
74 74
75void usage (char *msg); 75void usage (char *msg) __attribute__((noreturn));
76void usage2(char *msg, char *arg); 76void usage2(char *msg, char *arg) __attribute__((noreturn));
77void usage3(char *msg, char arg); 77void usage3(char *msg, char arg) __attribute__((noreturn));
78 78
79char *state_text (int result); 79char *state_text (int result);
80 80