summaryrefslogtreecommitdiff
path: root/reentr.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-01-13 10:11:42 -0700
committerKarl Williamson <khw@cpan.org>2020-01-14 07:34:56 -0700
commit2b1f0c39c2a0de7f6e03349f2930c3eb6bd6208c (patch)
treea17be5becd5b3ad3c42c532ae7b56e40c90c7838 /reentr.c
parent9f03c145bdfb6ae589fdab4a6e47ec71b2d12330 (diff)
downloadperl-2b1f0c39c2a0de7f6e03349f2930c3eb6bd6208c.tar.gz
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.
Diffstat (limited to 'reentr.c')
-rw-r--r--reentr.c4
1 files changed, 2 insertions, 2 deletions
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: