summaryrefslogtreecommitdiffstats
path: root/plugins/check_tcp.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-04-17 05:55:25 +0000
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-04-17 05:55:25 +0000
commit54c9381f104d98b183c24408d5a3430076a6f36b (patch)
tree1729020a67c0096db2f2959ada833f4823a9ee27 /plugins/check_tcp.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_tcp.c')
-rw-r--r--plugins/check_tcp.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 62efc8c7..1057fdc6 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -57,7 +57,7 @@ const char *standard_options = "\
57 -h, --help\n\ 57 -h, --help\n\
58 Print detailed help screen\n\ 58 Print detailed help screen\n\
59 -V, --version\n\ 59 -V, --version\n\
60 Print version information"; 60 Print version information\n\n";
61 61
62#include "config.h" 62#include "config.h"
63#include "common.h" 63#include "common.h"
@@ -358,10 +358,7 @@ main (int argc, char **argv)
358 358
359 return result; 359 return result;
360} 360}
361 361
362
363
364
365 362
366 363
367 364
@@ -513,13 +510,15 @@ process_arguments (int argc, char **argv)
513 510
514 return OK; 511 return OK;
515} 512}
513
514
515
516 516
517void 517void
518print_help (void) 518print_help (void)
519{ 519{
520 print_revision (progname, revision); 520 print_revision (progname, revision);
521 printf ("Copyright (c) %s %s\n\t<%s>\n\n", 521 printf ("Copyright (c) %s %s\n\t<%s>\n\n", copyright, authors, email);
522 copyright, authors, email);
523 printf (summary, SERVICE); 522 printf (summary, SERVICE);
524 print_usage (); 523 print_usage ();
525 printf ("\nOptions:\n"); 524 printf ("\nOptions:\n");
@@ -535,6 +534,9 @@ print_usage (void)
535 printf (" %s (-h|--help)\n", progname); 534 printf (" %s (-h|--help)\n", progname);
536 printf (" %s (-V|--version)\n", progname); 535 printf (" %s (-V|--version)\n", progname);
537} 536}
537
538
539
538 540
539#ifdef HAVE_SSL 541#ifdef HAVE_SSL
540int 542int