From: Hallvard Furuseth Date: Thu, 5 Nov 1998 06:05:52 +0000 (+0000) Subject: Some gcc -W... cleanup X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~1191 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6b0a49002686d86d3ffcf435e1c871ad8b1257eb;p=openldap Some gcc -W... cleanup --- diff --git a/libraries/libldap/cldap.c b/libraries/libldap/cldap.c index f5b8ae9782..46d9db86b8 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 )) == -1 ) { + if ( (address = inet_addr( host )) == -1UL ) { if ( (hp = gethostbyname( host )) == NULL ) { errno = EHOSTUNREACH; continue; diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index 03912ae2fa..03c055b617 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -54,7 +54,7 @@ ldap_connect_to_host( Sockbuf *sb, char *host, unsigned long address, connected = use_hp = 0; - if ( host != NULL && ( address = inet_addr( host )) == -1 ) { + if ( host != NULL && ( address = inet_addr( host )) == -1UL ) { if ( (hp = gethostbyname( host )) == NULL ) { #ifdef HAVE_WINSOCK errno = WSAGetLastError();