silence warning

This commit is contained in:
Pierangelo Masarati 2003-03-11 12:25:39 +00:00
parent 3415b384e2
commit f6a47ac9ea

View file

@ -1613,7 +1613,7 @@ slapd_daemon_task(
#ifdef SLAPD_RLOOKUPS
if ( use_reverse_lookup ) {
char *herr;
if (ldap_pvt_get_hname( &from, len, hbuf,
if (ldap_pvt_get_hname( (const struct sockaddr *)&from, len, hbuf,
sizeof(hbuf), &herr ) == 0) {
ldap_pvt_str2lower( hbuf );
dnsname = hbuf;