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;