summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 14:10:27 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 14:10:27 +0100
commita54dd508958449d4205a2ae6b1033ce44d7507e3 (patch)
tree3440213a31a61085b4563933d492e48fc4ff7782
parente4e7c00647c44901eca531f0209d7211725f8b86 (diff)
downloadmonitoring-plugins-a54dd508958449d4205a2ae6b1033ce44d7507e3.tar.gz
check_time: do not export local variables
-rw-r--r--plugins/check_time.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/check_time.c b/plugins/check_time.c
index 41d2c495..cf17b221 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
45uint32_t raw_server_time; 45static uint32_t raw_server_time;
46unsigned long server_time, diff_time; 46static unsigned long server_time, diff_time;
47int warning_time = 0; 47static int warning_time = 0;
48bool check_warning_time = false; 48static bool check_warning_time = false;
49int critical_time = 0; 49static int critical_time = 0;
50bool check_critical_time = false; 50static bool check_critical_time = false;
51unsigned long warning_diff = 0; 51static unsigned long warning_diff = 0;
52bool check_warning_diff = false; 52static bool check_warning_diff = false;
53unsigned long critical_diff = 0; 53static unsigned long critical_diff = 0;
54bool check_critical_diff = false; 54static bool check_critical_diff = false;
55int server_port = TIME_PORT; 55static int server_port = TIME_PORT;
56char *server_address = NULL; 56static char *server_address = NULL;
57bool use_udp = false; 57static bool use_udp = false;
58 58
59int process_arguments(int, char **); 59static int process_arguments(int, char **);
60void print_help(void); 60static void print_help(void);
61void print_usage(void); 61void print_usage(void);
62 62
63int main(int argc, char **argv) { 63int main(int argc, char **argv) {