From: Howard Chu Date: Wed, 5 Mar 2003 01:53:03 +0000 (+0000) Subject: Silence warnings in prev commit X-Git-Tag: NO_SLAP_OP_BLOCKS~178 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8fc4f55d3a468fa7bd970b8f834723a2de9e3888;p=openldap Silence warnings in prev commit --- 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 );