]> git.sur5r.net Git - openldap/commitdiff
Silence warnings in prev commit
authorHoward Chu <hyc@openldap.org>
Wed, 5 Mar 2003 01:53:03 +0000 (01:53 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 5 Mar 2003 01:53:03 +0000 (01:53 +0000)
libraries/libldap/util-int.c

index 6d5886d3654428fb43797175e33f7438d09f514a..23bf1d194c6cdab1d8262a3c24ba415d6366df9e 100644 (file)
@@ -240,13 +240,13 @@ int ldap_pvt_get_hname(
                alen = sizeof(sin->sin_addr);
        } else {
                rc = NO_RECOVERY;
-               *err = hp_strerror( rc );
+               *err = (char *)hp_strerror( rc );
                return rc;
        }
 #if defined( HAVE_GETHOSTBYADDR_R )
        for(;buflen<BUFMAX;) {
                if (safe_realloc( &buf, buflen )==NULL) {
-                       *err = STRERROR( ENOMEM );
+                       *err = (char *)STRERROR( ENOMEM );
                        return ENOMEM;
                }
 #if (GETHOSTBYADDR_R_NARGS < 8)
@@ -272,7 +272,7 @@ int ldap_pvt_get_hname(
        if (hp) {
                strncpy( name, hp->h_name, namelen );
        } else {
-               *err = hp_strerror( h_errno );
+               *err = (char *)hp_strerror( h_errno );
        }
        LDAP_FREE(buf);
 #else /* HAVE_GETHOSTBYADDR_R */
@@ -286,7 +286,7 @@ int ldap_pvt_get_hname(
                rc = 0;
        } else {
                rc = h_errno;
-               *err = hp_strerror( h_errno );
+               *err = (char *)hp_strerror( h_errno );
        }
 #if defined( LDAP_R_COMPILE )
        ldap_pvt_thread_mutex_unlock( &ldap_int_resolv_mutex );