summaryrefslogtreecommitdiffstats
path: root/plugins/utils.c
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.c
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.c')
-rw-r--r--plugins/utils.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/utils.c b/plugins/utils.c
index 8827e31..b57d5e1 100644
--- a/plugins/utils.c
+++ b/plugins/utils.c
@@ -22,8 +22,6 @@
22* 22*
23*****************************************************************************/ 23*****************************************************************************/
24 24
25#define LOCAL_TIMEOUT_ALARM_HANDLER
26
27#include "common.h" 25#include "common.h"
28#include "utils.h" 26#include "utils.h"
29#include "utils_base.h" 27#include "utils_base.h"
@@ -38,6 +36,11 @@ extern const char *progname;
38#define STRLEN 64 36#define STRLEN 64
39#define TXTBLK 128 37#define TXTBLK 128
40 38
39unsigned int timeout_state = STATE_CRITICAL;
40unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT;
41
42time_t start_time, end_time;
43
41/* ************************************************************************** 44/* **************************************************************************
42 * max_state(STATE_x, STATE_y) 45 * max_state(STATE_x, STATE_y)
43 * compares STATE_x to STATE_y and returns result based on the following 46 * compares STATE_x to STATE_y and returns result based on the following