diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 (GMT) |
commit | 0c3386274ef5002dffc20337ef02407f24d7400c (patch) | |
tree | 1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_dummy.c | |
parent | de5650f28e4e43a7264913953f95a75d8afe23f0 (diff) | |
download | monitoring-plugins-0c3386274ef5002dffc20337ef02407f24d7400c.tar.gz |
convert PROGANE from a define to a const char
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@238 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dummy.c')
-rw-r--r-- | plugins/check_dummy.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/check_dummy.c b/plugins/check_dummy.c index c2a5b7e..ca37e98 100644 --- a/plugins/check_dummy.c +++ b/plugins/check_dummy.c | |||
@@ -37,8 +37,10 @@ | |||
37 | #include "common.h" | 37 | #include "common.h" |
38 | #include "utils.h" | 38 | #include "utils.h" |
39 | 39 | ||
40 | void print_help (char *); | 40 | const char *progname = "check_dummy"; |
41 | void print_usage (char *); | 41 | |
42 | void print_help (const char *); | ||
43 | void print_usage (const char *); | ||
42 | 44 | ||
43 | int | 45 | int |
44 | main (int argc, char **argv) | 46 | main (int argc, char **argv) |
@@ -82,7 +84,7 @@ main (int argc, char **argv) | |||
82 | } | 84 | } |
83 | 85 | ||
84 | void | 86 | void |
85 | print_help (char *cmd) | 87 | print_help (const char *cmd) |
86 | { | 88 | { |
87 | print_revision (cmd, "$Revision$"); | 89 | print_revision (cmd, "$Revision$"); |
88 | printf ("Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)\n" | 90 | printf ("Copyright (c) 1999 Ethan Galstad (nagios@nagios.org)\n" |
@@ -94,7 +96,7 @@ print_help (char *cmd) | |||
94 | } | 96 | } |
95 | 97 | ||
96 | void | 98 | void |
97 | print_usage (char *cmd) | 99 | print_usage (const char *cmd) |
98 | { | 100 | { |
99 | printf ("Usage: %s <integer state>\n", cmd); | 101 | printf ("Usage: %s <integer state>\n", cmd); |
100 | } | 102 | } |