]> git.sur5r.net Git - openldap/commitdiff
MSVC5 does like -1UL... replaced with (unsigned long) -1L
authorKurt Zeilenga <kurt@openldap.org>
Fri, 6 Nov 1998 02:04:07 +0000 (02:04 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 6 Nov 1998 02:04:07 +0000 (02:04 +0000)
libraries/libldap/cldap.c

index 46d9db86b8b8924d35dadcd73861fbb6b0aafa0f..bf77d44ba5ea487d1c131c48ce92b1eabc8e4406 100644 (file)
@@ -109,7 +109,7 @@ cldap_open( char *host, int port )
                }
            }
 
-           if ( (address = inet_addr( host )) == -1UL ) {
+           if ( (address = inet_addr( host )) == (unsigned long) -1L ) {
                if ( (hp = gethostbyname( host )) == NULL ) {
                    errno = EHOSTUNREACH;
                    continue;