From 3a1aba86abd04005e2258821b7d8ac81a13137aa Mon Sep 17 00:00:00 2001 From: Gary Williams Date: Wed, 14 Apr 1999 15:11:57 +0000 Subject: [PATCH] put conditions on hp so we don't get unreferenced variable warning --- servers/slapd/daemon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.5