]> git.sur5r.net Git - openldap/commitdiff
put conditions on hp so we don't get unreferenced variable warning
authorGary Williams <gwilliams@openldap.org>
Wed, 14 Apr 1999 15:11:57 +0000 (15:11 +0000)
committerGary Williams <gwilliams@openldap.org>
Wed, 14 Apr 1999 15:11:57 +0000 (15:11 +0000)
servers/slapd/daemon.c

index f1c44505c5d98f9d4fe5b28bff0bf4dfb9b1f598..a24310d6e8e56d8cc927821de35bc3df6dfda42d 100644 (file)
@@ -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;