From: Kurt Zeilenga Date: Fri, 15 Sep 2000 22:49:14 +0000 (+0000) Subject: Remove cruft (-h) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1972 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b1770ee0986032604c8c4da92a9e148c94f80eb8;p=openldap Remove cruft (-h) --- diff --git a/servers/slurpd/args.c b/servers/slurpd/args.c index 8f8458c34d..409fd08fdb 100644 --- a/servers/slurpd/args.c +++ b/servers/slurpd/args.c @@ -63,7 +63,7 @@ doargs( g->myname = strdup( g->myname + 1 ); } - while ( (i = getopt( argc, argv, "hd:f:r:t:o" )) != EOF ) { + while ( (i = getopt( argc, argv, "d:f:or:t:" )) != EOF ) { switch ( i ) { case 'd': /* set debug level and 'do not detach' flag */ g->no_detach = 1; @@ -105,6 +105,9 @@ doargs( case 'f': /* slapd config file */ g->slapd_configfile = strdup( optarg ); break; + case 'o': + g->one_shot_mode = 1; + break; case 'r': /* slapd replog file */ strncpy( g->slapd_replogfile, optarg, sizeof(g->slapd_replogfile)-1 ); @@ -115,12 +118,6 @@ doargs( g->slurpd_rdir = (char *)malloc (strlen(optarg) + strlen("/replica") + 1); sprintf(g->slurpd_rdir, "%s/replica", optarg); break; - case 'h': - usage( g->myname ); - return( -1 ); - case 'o': - g->one_shot_mode = 1; - break; default: usage( g->myname ); return( -1 );