From: Hallvard Furuseth Date: Sun, 25 May 2003 20:50:26 +0000 (+0000) Subject: Cast away const from AC_GAI_STRERROR() return value. X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aed036f0c3cb285a23e8403eb1c7ea761da3e157;p=openldap Cast away const from AC_GAI_STRERROR() return value. --- diff --git a/libraries/libldap/util-int.c b/libraries/libldap/util-int.c index 96d1fe14e8..d43288b242 100644 --- a/libraries/libldap/util-int.c +++ b/libraries/libldap/util-int.c @@ -220,7 +220,7 @@ int ldap_pvt_get_hname( #if defined( LDAP_R_COMPILE ) ldap_pvt_thread_mutex_unlock( &ldap_int_resolv_mutex ); #endif - if ( rc ) *err = AC_GAI_STRERROR( rc ); + if ( rc ) *err = (char *)AC_GAI_STRERROR( rc ); return rc; #else /* !HAVE_GETNAMEINFO */