mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-01 14:15:49 +08:00
Some gcc -W... cleanup
This commit is contained in:
parent
a4411a9944
commit
6b0a490026
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user