From 22215a396c7dec9a57343975064761691b0f2260 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 10 Feb 2003 19:59:32 +0000 Subject: [PATCH] Remove lint --- libraries/libldap/os-ip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index ecaa8c8118..fc705e9f33 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -328,6 +328,9 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb, ber_socket_t s = AC_SOCKET_INVALID; int rc, i, use_hp = 0; struct hostent *hp = NULL; +#if !defined( HAVE_GETADDRINFO ) || !defined( HAVE_INET_NTOP ) + struct hostent he_buf; +#endif char *ha_buf=NULL, *p, *q; int socktype; @@ -429,7 +432,6 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb, struct in_addr in; if (! inet_aton( host, &in) ) { int local_h_errno; - struct hostent he_buf; rc = ldap_pvt_gethostbyname_a(host, &he_buf, &ha_buf, &hp, &local_h_errno); -- 2.39.5