From: Hallvard Furuseth Date: Thu, 2 Sep 1999 07:36:17 +0000 (+0000) Subject: Remove unused vars/function X-Git-Tag: TWEB_OL_BASE~45 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b290faf0db2acdca2a8a27f97cce46d6dafa4f92;p=openldap Remove unused vars/function --- diff --git a/servers/slurpd/ldap_op.c b/servers/slurpd/ldap_op.c index e8663c26f6..ed431e3d48 100644 --- a/servers/slurpd/ldap_op.c +++ b/servers/slurpd/ldap_op.c @@ -50,7 +50,9 @@ static void free_ldmarr LDAP_P(( LDAPMod ** )); static int getmodtype LDAP_P(( char * )); static void dump_ldm_array LDAP_P(( LDAPMod ** )); static char **read_krbnames LDAP_P(( Ri * )); +#ifdef HAVE_KERBEROS static void upcase LDAP_P(( char * )); +#endif static int do_bind LDAP_P(( Ri *, int * )); static int do_unbind LDAP_P(( Ri * )); @@ -885,6 +887,7 @@ read_krbnames( } +#ifdef HAVE_KERBEROS /* * upcase a string @@ -900,3 +903,5 @@ upcase( *p = TOUPPER( (unsigned char) *p ); } } + +#endif /* HAVE_KERBEROS */ diff --git a/servers/slurpd/re.c b/servers/slurpd/re.c index 4d6ee77a65..d95da212ed 100644 --- a/servers/slurpd/re.c +++ b/servers/slurpd/re.c @@ -269,7 +269,6 @@ get_repl_hosts( char **r_rp ) { - char buf[ LDIF_LINE_WIDTH + 1 ]; char *type, *value, *line, *p; Rh *rh = NULL; int nreplicas; diff --git a/servers/slurpd/rq.c b/servers/slurpd/rq.c index 4ef66727bd..1afd11db92 100644 --- a/servers/slurpd/rq.c +++ b/servers/slurpd/rq.c @@ -36,6 +36,7 @@ #include #include +#include #include /* get ftruncate() */ #include "slurp.h" @@ -314,8 +315,6 @@ Rq_needtrim( ) { int rc = 0; - Re *re; - int nzrc = 0; /* nzrc is count of entries with refcnt == 0 */ time_t now; if ( rq == NULL ) {