Skip to content
Snippets Groups Projects
Commit 6b0a4900 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Some gcc -W... cleanup

parent a4411a99
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment