From 8fc4f55d3a468fa7bd970b8f834723a2de9e3888 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 5 Mar 2003 01:53:03 +0000 Subject: [PATCH] Silence warnings in prev commit --- libraries/libldap/util-int.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ); -- 2.39.5