]> git.sur5r.net Git - openldap/commitdiff
Remove lint
authorKurt Zeilenga <kurt@openldap.org>
Mon, 10 Feb 2003 19:59:32 +0000 (19:59 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 10 Feb 2003 19:59:32 +0000 (19:59 +0000)
libraries/libldap/os-ip.c

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