summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/utils.h')
-rw-r--r--plugins/utils.h10
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
24extern unsigned int timeout_interval; 24extern unsigned int timeout_interval;
25RETSIGTYPE timeout_alarm_handler (int) __attribute__((noreturn)); 25RETSIGTYPE timeout_alarm_handler (int);
26#else 26#else
27unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; 27unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT;
28extern RETSIGTYPE timeout_alarm_handler (int) __attribute__((noreturn)); 28extern RETSIGTYPE timeout_alarm_handler (int);
29#endif 29#endif
30 30
31time_t start_time, end_time; 31time_t start_time, end_time;
@@ -64,9 +64,7 @@ double delta_time (struct timeval tv);
64 64
65void strip (char *buffer); 65void strip (char *buffer);
66char *strscpy (char *dest, const char *src); 66char *strscpy (char *dest, const char *src);
67char *strscat (char *dest, const char *src);
68char *strnl (char *str); 67char *strnl (char *str);
69char *ssprintf (char *str, const char *fmt, ...); /* deprecate for asprintf */
70char *strpcpy (char *dest, const char *src, const char *str); 68char *strpcpy (char *dest, const char *src, const char *str);
71char *strpcat (char *dest, const char *src, const char *str); 69char *strpcat (char *dest, const char *src, const char *str);
72 70
@@ -74,9 +72,9 @@ int max_state (int a, int b);
74 72
75void usage (char *msg) __attribute__((noreturn)); 73void usage (char *msg) __attribute__((noreturn));
76void usage2(char *msg, char *arg) __attribute__((noreturn)); 74void usage2(char *msg, char *arg) __attribute__((noreturn));
77void usage3(char *msg, char arg) __attribute__((noreturn)); 75void usage3(char *msg, int arg) __attribute__((noreturn));
78 76
79char *state_text (int result); 77const 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