From: Steve Peters Date: Fri, 11 Nov 2005 22:47:06 +0000 (+0000) Subject: const'ing Netdb_host_t broke HP-UX and created warnings on gcc for a double const. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5bf7026a60a2e5536d6f6c6d3b2c6d38669c9b81;p=p5sagit%2Fp5-mst-13.2.git const'ing Netdb_host_t broke HP-UX and created warnings on gcc for a double const. Netdb_host_t is a macro that for a const pointer. p4raw-id: //depot/perl@26090 --- diff --git a/pp_sys.c b/pp_sys.c index 3bfff96..65971c1 100644 --- a/pp_sys.c +++ b/pp_sys.c @@ -4498,7 +4498,7 @@ PP(pp_ghostent) const int addrtype = POPi; SV * const addrsv = POPs; STRLEN addrlen; - const Netdb_host_t addr = (Netdb_host_t) SvPVbyte(addrsv, addrlen); + Netdb_host_t addr = (Netdb_host_t) SvPVbyte(addrsv, addrlen); hent = PerlSock_gethostbyaddr(addr, (Netdb_hlen_t) addrlen, addrtype); #else