summaryrefslogtreecommitdiffstats
path: root/plugins/check_dig.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-04-17 05:55:25 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-04-17 05:55:25 (GMT)
commit54c9381f104d98b183c24408d5a3430076a6f36b (patch)
tree1729020a67c0096db2f2959ada833f4823a9ee27 /plugins/check_dig.c
parent614071738f0edeedfa9731c5e3dd63e158bfbc7a (diff)
downloadmonitoring-plugins-54c9381f104d98b183c24408d5a3430076a6f36b.tar.gz
code cleanup to clear strict compiler warnings
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@496 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r--plugins/check_dig.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index f80a9dc..6e04087 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -21,6 +21,7 @@ const char *revision = "$Revision$";
21const char *copyright = "2002-2003"; 21const char *copyright = "2002-2003";
22const char *authors = "Nagios Plugin Development Team"; 22const char *authors = "Nagios Plugin Development Team";
23const char *email = "nagiosplug-devel@lists.sourceforge.net"; 23const char *email = "nagiosplug-devel@lists.sourceforge.net";
24
24const char *summary = "Test the DNS service on the specified host using dig\n"; 25const char *summary = "Test the DNS service on the specified host using dig\n";
25 26
26const char *option_summary = "-H host -l lookup [-t timeout] [-v]"; 27const char *option_summary = "-H host -l lookup [-t timeout] [-v]";
@@ -33,11 +34,13 @@ const char *options = "\
33 -t, --timeout=INTEGER\n\ 34 -t, --timeout=INTEGER\n\
34 Seconds before connection attempt times out (default: %d)\n\ 35 Seconds before connection attempt times out (default: %d)\n\
35 -v, --verbose\n\ 36 -v, --verbose\n\
36 Print extra information (command-line use only)\n\ 37 Print extra information (command-line use only)\n";
38
39const char *standard_options = "\
37 -h, --help\n\ 40 -h, --help\n\
38 Print detailed help screen\n\ 41 Print detailed help screen\n\
39 -V, --version\n\ 42 -V, --version\n\
40 Print version information\n\n"; 43 Print version information\n\n";
41 44
42#include "config.h" 45#include "config.h"
43#include "common.h" 46#include "common.h"
@@ -238,7 +241,7 @@ validate_arguments (void)
238{ 241{
239 return OK; 242 return OK;
240} 243}
241 244
242 245
243 246
244 247
@@ -247,12 +250,12 @@ void
247print_help (void) 250print_help (void)
248{ 251{
249 print_revision (progname, revision); 252 print_revision (progname, revision);
250 printf 253 printf ("Copyright (c) %s %s\n\t<%s>\n\n", copyright, authors, email);
251 ("Copyright (c) %s %s <%s>\n\n%s\n", 254 printf (summary);
252 copyright, authors, email, summary);
253 print_usage (); 255 print_usage ();
254 printf ("\nOptions:\n"); 256 printf ("\nOptions:\n");
255 printf (options, DEFAULT_SOCKET_TIMEOUT); 257 printf (options, DEFAULT_SOCKET_TIMEOUT);
258 printf (standard_options);
256 support (); 259 support ();
257} 260}
258 261