diff --git a/libraries/libldap/util-int.c b/libraries/libldap/util-int.c index 6d5886d365..23bf1d194c 100644 --- a/libraries/libldap/util-int.c +++ b/libraries/libldap/util-int.c @@ -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(;buflenh_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 );