Code

semicolon needed where praogname define was replced
[nagiosplug.git] / plugins / check_dummy.c
index c2a5b7eb859294b7bfcfd05d25d52ddab3bbacc0..ca37e98e91b9d976862c1c1246c0ff3ba1cdd3ef 100644 (file)
 #include "common.h"
 #include "utils.h"
 
-void print_help (char *);
-void print_usage (char *);
+const char *progname = "check_dummy";
+
+void print_help (const char *);
+void print_usage (const char *);
 
 int
 main (int argc, char **argv)
@@ -82,7 +84,7 @@ main (int argc, char **argv)
 }
 
 void
-print_help (char *cmd)
+print_help (const char *cmd)
 {
        print_revision (cmd, "$Revision$");
        printf ("Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)\n"
@@ -94,7 +96,7 @@ print_help (char *cmd)
 }
 
 void
-print_usage (char *cmd)
+print_usage (const char *cmd)
 {
        printf ("Usage: %s <integer state>\n", cmd);
 }