diff options
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. */ | |||
| 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 | ||
