diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-10 22:45:45 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-10 22:45:45 +0200 |
commit | 5b0e00782da2bbe9f9062884c9ae8ed330d5911e (patch) | |
tree | b14d8d7759e0e76b526d18dc1a8fe7ba6fd8d5cc /plugins/utils.c | |
parent | b48cb1f130cda9818d06aaf74cdc7d2aef13bf42 (diff) | |
download | monitoring-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.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/utils.c b/plugins/utils.c index 8827e31a..b57d5e17 100644 --- a/plugins/utils.c +++ b/plugins/utils.c @@ -22,8 +22,6 @@ * *****************************************************************************/ -#define LOCAL_TIMEOUT_ALARM_HANDLER - #include "common.h" #include "utils.h" #include "utils_base.h" @@ -38,6 +36,11 @@ extern const char *progname; #define STRLEN 64 #define TXTBLK 128 +unsigned int timeout_state = STATE_CRITICAL; +unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; + +time_t start_time, end_time; + /* ************************************************************************** * max_state(STATE_x, STATE_y) * compares STATE_x to STATE_y and returns result based on the following |