aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_dig.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-04-17 05:55:25 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-04-17 05:55:25 +0000
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 f80a9dc2..6e040874 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -21,6 +21,7 @@ const char *revision = "$Revision$";
const char *copyright = "2002-2003";
const char *authors = "Nagios Plugin Development Team";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
+
const char *summary = "Test the DNS service on the specified host using dig\n";
const char *option_summary = "-H host -l lookup [-t timeout] [-v]";
@@ -33,11 +34,13 @@ const char *options = "\
-t, --timeout=INTEGER\n\
Seconds before connection attempt times out (default: %d)\n\
-v, --verbose\n\
- Print extra information (command-line use only)\n\
+ Print extra information (command-line use only)\n";
+
+const char *standard_options = "\
-h, --help\n\
- Print detailed help screen\n\
+ Print detailed help screen\n\
-V, --version\n\
- Print version information\n\n";
+ Print version information\n\n";
#include "config.h"
#include "common.h"
@@ -238,7 +241,7 @@ validate_arguments (void)
{
return OK;
}
-
+
@@ -247,12 +250,12 @@ void
print_help (void)
{
print_revision (progname, revision);
- printf
- ("Copyright (c) %s %s <%s>\n\n%s\n",
- copyright, authors, email, summary);
+ printf ("Copyright (c) %s %s\n\t<%s>\n\n", copyright, authors, email);
+ printf (summary);
print_usage ();
printf ("\nOptions:\n");
printf (options, DEFAULT_SOCKET_TIMEOUT);
+ printf (standard_options);
support ();
}