[monitoring-plugins] check_ntp: delare file local variables static

Lorenz Kästle git at monitoring-plugins.org
Fri Nov 8 23:10:12 CET 2024


 Module: monitoring-plugins
 Branch: master
 Commit: e3efbb796a58e02eceeef2e12b1f159d687a1b2b
 Author: Lorenz Kästle <12514511+RincewindsHat at users.noreply.github.com>
   Date: Fri Nov  8 12:35:27 2024 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=e3efbb7

check_ntp: delare file local variables static

---

 plugins/check_ntp.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 55a4946..d33f878 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -47,10 +47,10 @@ static bool do_jitter = false;
 static char *jwarn="5000";
 static char *jcrit="10000";
 
-int process_arguments (int, char **);
-thresholds *offset_thresholds = NULL;
-thresholds *jitter_thresholds = NULL;
-void print_help (void);
+static int process_arguments (int /*argc*/, char ** /*argv*/);
+static thresholds *offset_thresholds = NULL;
+static thresholds *jitter_thresholds = NULL;
+static void print_help (void);
 void print_usage (void);
 
 /* number of times to perform each request to get a good average. */



More information about the Commits mailing list