From: Gary Williams Date: Wed, 14 Apr 1999 15:11:57 +0000 (+0000) Subject: put conditions on hp so we don't get unreferenced variable warning X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~177 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a1aba86abd04005e2258821b7d8ac81a13137aa;p=openldap put conditions on hp so we don't get unreferenced variable warning --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index f1c44505c5..a24310d6e8 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -268,8 +268,10 @@ slapd_daemon_task( fd_set writefds; struct sockaddr_in from; - struct hostent *hp; - struct timeval zero; +#if defined(SLAPD_RLOOKUPS) || defined(HAVE_TCPD) + struct hostent *hp; +#endif + struct timeval zero; struct timeval *tvp; char *client_name;