diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-08 05:09:40 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-08 05:09:40 (GMT) |
commit | a9f992033fc32c0cca125e80d3d96aacfc78b802 (patch) | |
tree | bad34ea7077716b4b074ee66ba3259097a4f3108 /plugins/utils.h | |
parent | 65ca899d2c98b6342783922a5709c4b61e6b2b1f (diff) | |
download | monitoring-plugins-a9f992033fc32c0cca125e80d3d96aacfc78b802.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@663 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils.h')
-rw-r--r-- | plugins/utils.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/utils.h b/plugins/utils.h index 9dc2654..a852e86 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
@@ -22,10 +22,10 @@ void die (int result, const char *fmt, ...) __attribute__((noreturn)); | |||
22 | 22 | ||
23 | #ifdef LOCAL_TIMEOUT_ALARM_HANDLER | 23 | #ifdef LOCAL_TIMEOUT_ALARM_HANDLER |
24 | extern unsigned int timeout_interval; | 24 | extern unsigned int timeout_interval; |
25 | RETSIGTYPE timeout_alarm_handler (int) __attribute__((noreturn)); | 25 | RETSIGTYPE timeout_alarm_handler (int); |
26 | #else | 26 | #else |
27 | unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; | 27 | unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; |
28 | extern RETSIGTYPE timeout_alarm_handler (int) __attribute__((noreturn)); | 28 | extern RETSIGTYPE timeout_alarm_handler (int); |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | time_t start_time, end_time; | 31 | time_t start_time, end_time; |
@@ -64,9 +64,7 @@ double delta_time (struct timeval tv); | |||
64 | 64 | ||
65 | void strip (char *buffer); | 65 | void strip (char *buffer); |
66 | char *strscpy (char *dest, const char *src); | 66 | char *strscpy (char *dest, const char *src); |
67 | char *strscat (char *dest, const char *src); | ||
68 | char *strnl (char *str); | 67 | char *strnl (char *str); |
69 | char *ssprintf (char *str, const char *fmt, ...); /* deprecate for asprintf */ | ||
70 | char *strpcpy (char *dest, const char *src, const char *str); | 68 | char *strpcpy (char *dest, const char *src, const char *str); |
71 | char *strpcat (char *dest, const char *src, const char *str); | 69 | char *strpcat (char *dest, const char *src, const char *str); |
72 | 70 | ||
@@ -74,9 +72,9 @@ int max_state (int a, int b); | |||
74 | 72 | ||
75 | void usage (char *msg) __attribute__((noreturn)); | 73 | void usage (char *msg) __attribute__((noreturn)); |
76 | void usage2(char *msg, char *arg) __attribute__((noreturn)); | 74 | void usage2(char *msg, char *arg) __attribute__((noreturn)); |
77 | void usage3(char *msg, char arg) __attribute__((noreturn)); | 75 | void usage3(char *msg, int arg) __attribute__((noreturn)); |
78 | 76 | ||
79 | char *state_text (int result); | 77 | const char *state_text (int result); |
80 | 78 | ||
81 | #define max(a,b) (((a)>(b))?(a):(b)) | 79 | #define max(a,b) (((a)>(b))?(a):(b)) |
82 | 80 | ||