MSVC5 does like -1UL... replaced with (unsigned long) -1L

This commit is contained in:
Kurt Zeilenga 1998-11-06 02:04:07 +00:00
parent 36378ea411
commit 418c49de0c

View 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;