Some gcc -W... cleanup

This commit is contained in:
Hallvard Furuseth 1998-11-05 06:05:52 +00:00
parent a4411a9944
commit 6b0a490026
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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();