From 2b1f0c39c2a0de7f6e03349f2930c3eb6bd6208c Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 13 Jan 2020 10:11:42 -0700 Subject: regen/reentr.pl: Use Configure'd types Configure goes to the trouble of finding the parameter types that the gethostbyFOO functions use, but reentr.pl was ignoring this, causing compilation failures on at least Solaris. --- reentr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'reentr.c') diff --git a/reentr.c b/reentr.c index 166777e891..0466fae00c 100644 --- a/reentr.c +++ b/reentr.c @@ -328,10 +328,10 @@ Perl_reentrant_retry(const char *f, ...) p0 = va_arg(ap, void *); asize = va_arg(ap, size_t); anint = va_arg(ap, int); - retptr = gethostbyaddr(p0, asize, anint); break; + retptr = gethostbyaddr((Netdb_host_t) p0, (Netdb_hlen_t) asize, anint); break; case OP_GHBYNAME: p0 = va_arg(ap, void *); - retptr = gethostbyname((char *)p0); break; + retptr = gethostbyname((Netdb_name_t) p0); break; case OP_GHOSTENT: retptr = gethostent(); break; default: -- cgit v1.2.1