diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-13 12:15:16 +0000 |
commit | 0c3386274ef5002dffc20337ef02407f24d7400c (patch) | |
tree | 1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_ldap.c | |
parent | de5650f28e4e43a7264913953f95a75d8afe23f0 (diff) | |
download | monitoring-plugins-0c3386274ef5002dffc20337ef02407f24d7400c.tar.gz |
convert PROGANE from a define to a const char
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@238 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ldap.c')
-rw-r--r-- | plugins/check_ldap.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 213dc4a8..6491e5ba 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c @@ -20,7 +20,7 @@ * *****************************************************************************/ -#define PROGNAME "check_ldap" +const char *progname = "check_ldap"; #define REVISION "$Revision$" #include "config.h" @@ -35,8 +35,8 @@ int process_arguments (int, char **); int validate_arguments (void); -static void print_help (void); -static void print_usage (void); +void print_help (void); +void print_usage (void); char ld_defattr[] = "(objectclass=*)"; char *ld_attr = ld_defattr; @@ -165,7 +165,7 @@ process_arguments (int argc, char **argv) print_help (); exit (STATE_OK); case 'V': /* version */ - print_revision (PROGNAME, REVISION); + print_revision (progname, REVISION); exit (STATE_OK); case 't': /* timeout period */ if (!is_intnonneg (optarg)) @@ -225,10 +225,10 @@ validate_arguments () /* function print_help */ -static void +void print_help () { - print_revision (PROGNAME, REVISION); + print_revision (progname, REVISION); printf ("Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at)\n" "License: GPL\n" "\n"); @@ -248,11 +248,11 @@ print_help () } -static void +void print_usage () { printf ("Usage: %s -H <host> -b <base_dn> -p <port> [-a <attr>] [-D <binddn>]\n" " [-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]\n" - "(Note: all times are in seconds.)\n", PROGNAME); + "(Note: all times are in seconds.)\n", progname); } |