From 6b0a49002686d86d3ffcf435e1c871ad8b1257eb Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 5 Nov 1998 06:05:52 +0000 Subject: [PATCH] Some gcc -W... cleanup --- libraries/libldap/cldap.c | 2 +- libraries/libldap/os-ip.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5