diff options
author | Karl Williamson <khw@cpan.org> | 2020-01-13 10:11:42 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-01-14 07:34:56 -0700 |
commit | 2b1f0c39c2a0de7f6e03349f2930c3eb6bd6208c (patch) | |
tree | a17be5becd5b3ad3c42c532ae7b56e40c90c7838 /reentr.c | |
parent | 9f03c145bdfb6ae589fdab4a6e47ec71b2d12330 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |