From 5b0e00782da2bbe9f9062884c9ae8ed330d5911e Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 10 Sep 2013 22:45:45 +0200 Subject: Move global variables from .h to .c files Simplify things by moving the definition of global variables into .c files, where they belong. --- plugins/utils.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'plugins/utils.h') diff --git a/plugins/utils.h b/plugins/utils.h index 822be940..657d4bfa 100644 --- a/plugins/utils.h +++ b/plugins/utils.h @@ -31,17 +31,12 @@ void print_revision (const char *, const char *); /* Handle timeouts */ -#ifdef LOCAL_TIMEOUT_ALARM_HANDLER extern unsigned int timeout_state; extern unsigned int timeout_interval; + RETSIGTYPE timeout_alarm_handler (int); -#else -unsigned int timeout_state = STATE_CRITICAL; -unsigned int timeout_interval = DEFAULT_SOCKET_TIMEOUT; -extern RETSIGTYPE timeout_alarm_handler (int); -#endif -time_t start_time, end_time; +extern time_t start_time, end_time; /* Test input types */ -- cgit v1.2.3-74-g34f1