summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-10 20:45:45 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-10 20:45:45 (GMT)
commit5b0e00782da2bbe9f9062884c9ae8ed330d5911e (patch)
treeb14d8d7759e0e76b526d18dc1a8fe7ba6fd8d5cc /plugins/utils.h
parentb48cb1f130cda9818d06aaf74cdc7d2aef13bf42 (diff)
downloadmonitoring-plugins-5b0e00782da2bbe9f9062884c9ae8ed330d5911e.tar.gz
Move global variables from .h to .c files
Simplify things by moving the definition of global variables into .c files, where they belong.
Diffstat (limited to 'plugins/utils.h')
-rw-r--r--plugins/utils.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index 822be94..657d4bf 100644
--- a/plugins/utils.h
+++ b/plugins/utils.h
@@ -31,17 +31,12 @@ void print_revision (const char *, const char *);
31 31
32/* Handle timeouts */ 32/* Handle timeouts */
33 33
34#ifdef LOCAL_TIMEOUT_ALARM_HANDLER
35extern unsigned int timeout_state; 34extern unsigned int timeout_state;
36extern unsigned int timeout_interval; 35extern unsigned int timeout_interval;
36
37RETSIGTYPE timeout_alarm_handler (int); 37RETSIGTYPE timeout_alarm_handler (int);
38#else
39unsigned int timeout_state = STATE_CRITICAL;
40unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT;
41extern RETSIGTYPE timeout_alarm_handler (int);
42#endif
43 38
44time_t start_time, end_time; 39extern time_t start_time, end_time;
45 40
46/* Test input types */ 41/* Test input types */
47 42