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.h | |
| 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.h')
| -rw-r--r-- | plugins/netutils.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h index 5a495c91..347509e2 100644 --- a/plugins/netutils.h +++ b/plugins/netutils.h | |||
| @@ -81,20 +81,14 @@ void host_or_die(const char *str); | |||
| 81 | # define is_hostname(addr) resolve_host_or_addr(addr, AF_INET) | 81 | # define is_hostname(addr) resolve_host_or_addr(addr, AF_INET) |
| 82 | #endif | 82 | #endif |
| 83 | 83 | ||
| 84 | #ifdef LOCAL_TIMEOUT_ALARM_HANDLER | ||
| 85 | extern unsigned int socket_timeout; | 84 | extern unsigned int socket_timeout; |
| 86 | extern int socket_timeout_state; | 85 | extern unsigned int socket_timeout_state; |
| 87 | RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn)); | ||
| 88 | #else | ||
| 89 | unsigned int socket_timeout = DEFAULT_SOCKET_TIMEOUT; | ||
| 90 | unsigned int socket_timeout_state = STATE_CRITICAL; | ||
| 91 | extern RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn)); | ||
| 92 | #endif | ||
| 93 | |||
| 94 | extern int econn_refuse_state; | 86 | extern int econn_refuse_state; |
| 95 | extern int was_refused; | 87 | extern int was_refused; |
| 96 | extern int address_family; | 88 | extern int address_family; |
| 97 | 89 | ||
| 90 | RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn)); | ||
| 91 | |||
| 98 | /* SSL-Related functionality */ | 92 | /* SSL-Related functionality */ |
| 99 | #ifdef HAVE_SSL | 93 | #ifdef HAVE_SSL |
| 100 | /* maybe this could be merged with the above np_net_connect, via some flags */ | 94 | /* maybe this could be merged with the above np_net_connect, via some flags */ |
