diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:21:51 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:21:51 (GMT) |
commit | 7f7188e8de0a21d7846d0b0abcaa9fd38208ffbc (patch) | |
tree | ab6a39da587c49d6261eafcd7b2e0ccde74f26a0 /contrib/check_dhcp.c | |
parent | 0c3386274ef5002dffc20337ef02407f24d7400c (diff) | |
download | monitoring-plugins-7f7188e8de0a21d7846d0b0abcaa9fd38208ffbc.tar.gz |
convert PROGANE from a define to a const char
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@239 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'contrib/check_dhcp.c')
-rw-r--r-- | contrib/check_dhcp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/check_dhcp.c b/contrib/check_dhcp.c index 6a6037f..24b82f9 100644 --- a/contrib/check_dhcp.c +++ b/contrib/check_dhcp.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #include <arpa/inet.h> | 42 | #include <arpa/inet.h> |
43 | #include <netdb.h> | 43 | #include <netdb.h> |
44 | 44 | ||
45 | #define PROGNAME "check_dhcp" | 45 | const char *progname = "check_dhcp"; |
46 | 46 | ||
47 | /*#define DEBUG*/ | 47 | /*#define DEBUG*/ |
48 | #define HAVE_GETOPT_H | 48 | #define HAVE_GETOPT_H |
@@ -810,7 +810,7 @@ int get_results(void){ | |||
810 | /* print usage help */ | 810 | /* print usage help */ |
811 | void print_help(void){ | 811 | void print_help(void){ |
812 | 812 | ||
813 | /*print_revision(PROGNAME,"$Revision$");*/ | 813 | /*print_revision(progname,"$Revision$");*/ |
814 | 814 | ||
815 | printf("Copyright (c) 2001-2002 Ethan Galstad (nagios@nagios.org)\n\n"); | 815 | printf("Copyright (c) 2001-2002 Ethan Galstad (nagios@nagios.org)\n\n"); |
816 | printf("This plugin tests the availability of DHCP servers on a network.\n\n"); | 816 | printf("This plugin tests the availability of DHCP servers on a network.\n\n"); |
@@ -844,9 +844,9 @@ void print_help(void){ | |||
844 | /* prints usage information */ | 844 | /* prints usage information */ |
845 | void print_usage(void){ | 845 | void print_usage(void){ |
846 | 846 | ||
847 | printf("Usage: %s [-s serverip] [-r requestedip] [-t timeout] [-i interface]\n",PROGNAME); | 847 | printf("Usage: %s [-s serverip] [-r requestedip] [-t timeout] [-i interface]\n",progname); |
848 | printf(" %s --help\n",PROGNAME); | 848 | printf(" %s --help\n",progname); |
849 | printf(" %s --version\n",PROGNAME); | 849 | printf(" %s --version\n",progname); |
850 | 850 | ||
851 | return; | 851 | return; |
852 | } | 852 | } |
@@ -962,7 +962,7 @@ int call_getopt(int argc, char **argv){ | |||
962 | 962 | ||
963 | case 'V': /* version */ | 963 | case 'V': /* version */ |
964 | 964 | ||
965 | /*print_revision(PROGNAME,"$Revision$");*/ | 965 | /*print_revision(progname,"$Revision$");*/ |
966 | exit(STATE_OK); | 966 | exit(STATE_OK); |
967 | 967 | ||
968 | case 'h': /* help */ | 968 | case 'h': /* help */ |