summaryrefslogtreecommitdiffstats
path: root/plugins/check_ldap.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 +0000
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 +0000
commit0c3386274ef5002dffc20337ef02407f24d7400c (patch)
tree1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_ldap.c
parentde5650f28e4e43a7264913953f95a75d8afe23f0 (diff)
downloadmonitoring-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.c16
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 @@
20 * 20 *
21 *****************************************************************************/ 21 *****************************************************************************/
22 22
23#define PROGNAME "check_ldap" 23const char *progname = "check_ldap";
24#define REVISION "$Revision$" 24#define REVISION "$Revision$"
25 25
26#include "config.h" 26#include "config.h"
@@ -35,8 +35,8 @@
35 35
36int process_arguments (int, char **); 36int process_arguments (int, char **);
37int validate_arguments (void); 37int validate_arguments (void);
38static void print_help (void); 38void print_help (void);
39static void print_usage (void); 39void print_usage (void);
40 40
41char ld_defattr[] = "(objectclass=*)"; 41char ld_defattr[] = "(objectclass=*)";
42char *ld_attr = ld_defattr; 42char *ld_attr = ld_defattr;
@@ -165,7 +165,7 @@ process_arguments (int argc, char **argv)
165 print_help (); 165 print_help ();
166 exit (STATE_OK); 166 exit (STATE_OK);
167 case 'V': /* version */ 167 case 'V': /* version */
168 print_revision (PROGNAME, REVISION); 168 print_revision (progname, REVISION);
169 exit (STATE_OK); 169 exit (STATE_OK);
170 case 't': /* timeout period */ 170 case 't': /* timeout period */
171 if (!is_intnonneg (optarg)) 171 if (!is_intnonneg (optarg))
@@ -225,10 +225,10 @@ validate_arguments ()
225 225
226 226
227/* function print_help */ 227/* function print_help */
228static void 228void
229print_help () 229print_help ()
230{ 230{
231 print_revision (PROGNAME, REVISION); 231 print_revision (progname, REVISION);
232 printf 232 printf
233 ("Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at)\n" 233 ("Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at)\n"
234 "License: GPL\n" "\n"); 234 "License: GPL\n" "\n");
@@ -248,11 +248,11 @@ print_help ()
248} 248}
249 249
250 250
251static void 251void
252print_usage () 252print_usage ()
253{ 253{
254 printf 254 printf
255 ("Usage: %s -H <host> -b <base_dn> -p <port> [-a <attr>] [-D <binddn>]\n" 255 ("Usage: %s -H <host> -b <base_dn> -p <port> [-a <attr>] [-D <binddn>]\n"
256 " [-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]\n" 256 " [-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]\n"
257 "(Note: all times are in seconds.)\n", PROGNAME); 257 "(Note: all times are in seconds.)\n", progname);
258} 258}