diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-07-29 05:49:23 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-07-29 05:49:23 +0000 |
commit | 930c8c9dfc43b9927f587e96b984d168e0fc9bfe (patch) | |
tree | 3eb02376afbe3f3f56ba4d36f3537e04a68869c5 /plugins/utils.c | |
parent | 1601cc5bfbc918c2bd5909cd0adf9dbf7a80c9b8 (diff) | |
download | monitoring-plugins-930c8c9dfc43b9927f587e96b984d168e0fc9bfe.tar.gz |
clean up warnings about ill-formed comment and string concatenation
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@617 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils.c')
-rw-r--r-- | plugins/utils.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/plugins/utils.c b/plugins/utils.c index e63c8c08..128052d0 100644 --- a/plugins/utils.c +++ b/plugins/utils.c | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <arpa/inet.h> | 19 | #include <arpa/inet.h> |
20 | 20 | ||
21 | extern void print_usage (void); | ||
21 | extern int timeout_interval; | 22 | extern int timeout_interval; |
22 | extern const char *progname; | 23 | extern const char *progname; |
23 | 24 | ||
@@ -57,7 +58,7 @@ char *state_text (int result); | |||
57 | #define TXTBLK 128 | 58 | #define TXTBLK 128 |
58 | 59 | ||
59 | /* ************************************************************************** | 60 | /* ************************************************************************** |
60 | /* max_state(STATE_x, STATE_y) | 61 | * max_state(STATE_x, STATE_y) |
61 | * compares STATE_x to STATE_y and returns result based on the following | 62 | * compares STATE_x to STATE_y and returns result based on the following |
62 | * STATE_UNKNOWN < STATE_OK < STATE_WARNING < STATE_CRITICAL | 63 | * STATE_UNKNOWN < STATE_OK < STATE_WARNING < STATE_CRITICAL |
63 | * | 64 | * |
@@ -109,10 +110,10 @@ usage3 (char *msg, char arg) | |||
109 | void | 110 | void |
110 | support (void) | 111 | support (void) |
111 | { | 112 | { |
112 | printf | 113 | printf (_("\n\ |
113 | ("Send email to nagios-users@lists.sourceforge.net if you have questions\n" | 114 | Send email to nagios-users@lists.sourceforge.net if you have questions\n\ |
114 | "regarding use of this software. To submit patches or suggest improvements,\n" | 115 | regarding use of this software. To submit patches or suggest improvements,\n\ |
115 | "send email to nagiosplug-devel@lists.sourceforge.net\n"); | 116 | send email to nagiosplug-devel@lists.sourceforge.net\n")); |
116 | } | 117 | } |
117 | 118 | ||
118 | 119 | ||
@@ -134,11 +135,11 @@ print_revision (const char *command_name, const char *revision_string) | |||
134 | if (sscanf (revision_string, "$Revision: %[0-9.]", plugin_revision) != 1) | 135 | if (sscanf (revision_string, "$Revision: %[0-9.]", plugin_revision) != 1) |
135 | strncpy (plugin_revision, "N/A", STRLEN); | 136 | strncpy (plugin_revision, "N/A", STRLEN); |
136 | printf ("%s (%s %s) %s\n", | 137 | printf ("%s (%s %s) %s\n", |
137 | progname, PACKAGE, VERSION, plugin_revision); | 138 | command_name, PACKAGE, VERSION, plugin_revision); |
138 | printf | 139 | printf (_("\ |
139 | ("The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n" | 140 | The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n\ |
140 | "copies of the plugins under the terms of the GNU General Public License.\n" | 141 | copies of the plugins under the terms of the GNU General Public License.\n\ |
141 | "For more information about these matters, see the file named COPYING.\n"); | 142 | For more information about these matters, see the file named COPYING.\n")); |
142 | 143 | ||
143 | } | 144 | } |
144 | 145 | ||