summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-03-05 18:12:41 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-03-05 18:12:41 +0000
commit595ae48196d4b0901d4a1aee37333fa960a6031f (patch)
treec62fea37a03cc0b202d406f748ebe4f828171526 /pp_sys.c
parent41010ee291c2b5acc799d2426bfb74f41a33ba21 (diff)
downloadperl-595ae48196d4b0901d4a1aee37333fa960a6031f.tar.gz
Some tests for Camel 3rd edition features.
Make gethostbyaddr() test in above work. p4raw-id: //depot/perlio@9042
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 5179e0b227..c6e407b340 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -4515,7 +4515,7 @@ PP(pp_ghostent)
EXTEND(SP, 10);
if (which == OP_GHBYNAME)
#ifdef HAS_GETHOSTBYNAME
- hent = PerlSock_gethostbyname(POPpx);
+ hent = PerlSock_gethostbyname(POPpbytex);
#else
DIE(aTHX_ PL_no_sock_func, "gethostbyname");
#endif
@@ -4524,7 +4524,7 @@ PP(pp_ghostent)
int addrtype = POPi;
SV *addrsv = POPs;
STRLEN addrlen;
- Netdb_host_t addr = (Netdb_host_t) SvPV(addrsv, addrlen);
+ Netdb_host_t addr = (Netdb_host_t) SvPVbyte(addrsv, addrlen);
hent = PerlSock_gethostbyaddr(addr, (Netdb_hlen_t) addrlen, addrtype);
#else