diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 13:10:27 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 13:10:27 (GMT) |
commit | a54dd508958449d4205a2ae6b1033ce44d7507e3 (patch) | |
tree | 3440213a31a61085b4563933d492e48fc4ff7782 /plugins/check_time.c | |
parent | e4e7c00647c44901eca531f0209d7211725f8b86 (diff) | |
download | monitoring-plugins-a54dd508958449d4205a2ae6b1033ce44d7507e3.tar.gz |
check_time: do not export local variables
Diffstat (limited to 'plugins/check_time.c')
-rw-r--r-- | plugins/check_time.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/check_time.c b/plugins/check_time.c index 41d2c49..cf17b22 100644 --- a/plugins/check_time.c +++ b/plugins/check_time.c | |||
@@ -42,22 +42,22 @@ enum { | |||
42 | 42 | ||
43 | #define UNIX_EPOCH 2208988800UL | 43 | #define UNIX_EPOCH 2208988800UL |
44 | 44 | ||
45 | uint32_t raw_server_time; | 45 | static uint32_t raw_server_time; |
46 | unsigned long server_time, diff_time; | 46 | static unsigned long server_time, diff_time; |
47 | int warning_time = 0; | 47 | static int warning_time = 0; |
48 | bool check_warning_time = false; | 48 | static bool check_warning_time = false; |
49 | int critical_time = 0; | 49 | static int critical_time = 0; |
50 | bool check_critical_time = false; | 50 | static bool check_critical_time = false; |
51 | unsigned long warning_diff = 0; | 51 | static unsigned long warning_diff = 0; |
52 | bool check_warning_diff = false; | 52 | static bool check_warning_diff = false; |
53 | unsigned long critical_diff = 0; | 53 | static unsigned long critical_diff = 0; |
54 | bool check_critical_diff = false; | 54 | static bool check_critical_diff = false; |
55 | int server_port = TIME_PORT; | 55 | static int server_port = TIME_PORT; |
56 | char *server_address = NULL; | 56 | static char *server_address = NULL; |
57 | bool use_udp = false; | 57 | static bool use_udp = false; |
58 | 58 | ||
59 | int process_arguments(int, char **); | 59 | static int process_arguments(int, char **); |
60 | void print_help(void); | 60 | static void print_help(void); |
61 | void print_usage(void); | 61 | void print_usage(void); |
62 | 62 | ||
63 | int main(int argc, char **argv) { | 63 | int main(int argc, char **argv) { |