]> git.sur5r.net Git - openldap/commitdiff
Some gcc -W... cleanup
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 5 Nov 1998 06:05:52 +0000 (06:05 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 5 Nov 1998 06:05:52 +0000 (06:05 +0000)
libraries/libldap/cldap.c
libraries/libldap/os-ip.c

index f5b8ae97827a6fa0c4d4d0f1fe73bb04eb3e6566..46d9db86b8b8924d35dadcd73861fbb6b0aafa0f 100644 (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;
index 03912ae2fa921b45be3a5b8cd87833495c778e43..03c055b617b4bbda4506858ff4c16e280d8ac8bf 100644 (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();