From: Kurt Zeilenga Date: Fri, 6 Nov 1998 02:04:07 +0000 (+0000) Subject: MSVC5 does like -1UL... replaced with (unsigned long) -1L X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~1178 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=418c49de0c0fcc74d366e80eb5999d953fe00bc5;p=openldap MSVC5 does like -1UL... replaced with (unsigned long) -1L --- diff --git a/libraries/libldap/cldap.c b/libraries/libldap/cldap.c index 46d9db86b8..bf77d44ba5 100644 --- a/libraries/libldap/cldap.c +++ b/libraries/libldap/cldap.c @@ -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;