From b290faf0db2acdca2a8a27f97cce46d6dafa4f92 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 2 Sep 1999 07:36:17 +0000 Subject: [PATCH] Remove unused vars/function --- servers/slurpd/ldap_op.c | 5 +++++ servers/slurpd/re.c | 1 - servers/slurpd/rq.c | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) 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 ) { -- 2.39.5