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/netutils.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/netutils.c')
| -rw-r--r-- | plugins/netutils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/netutils.c b/plugins/netutils.c index 1d6100ab..9f18723a 100644 --- a/plugins/netutils.c +++ b/plugins/netutils.c | |||
| @@ -27,11 +27,12 @@ | |||
| 27 | * | 27 | * |
| 28 | *****************************************************************************/ | 28 | *****************************************************************************/ |
| 29 | 29 | ||
| 30 | #define LOCAL_TIMEOUT_ALARM_HANDLER | ||
| 31 | |||
| 32 | #include "common.h" | 30 | #include "common.h" |
| 33 | #include "netutils.h" | 31 | #include "netutils.h" |
| 34 | 32 | ||
| 33 | unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; | ||
| 34 | unsigned int socket_timeout_state = STATE_CRITICAL; | ||
| 35 | |||
| 35 | int econn_refuse_state = STATE_CRITICAL; | 36 | int econn_refuse_state = STATE_CRITICAL; |
| 36 | int was_refused = FALSE; | 37 | int was_refused = FALSE; |
| 37 | #if USE_IPV6 | 38 | #if USE_IPV6 |
