From: Niko Tyni Date: Mon, 24 Mar 2008 23:32:24 +0000 (+0200) Subject: IO::Socket::INET unnecessarily resolves "udp" X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7027b9a31bf80c5639c73f75155ed1a89c674c30;p=p5sagit%2Fp5-mst-13.2.git IO::Socket::INET unnecessarily resolves "udp" Message-Id: <1206394344-30835-1-git-send-email-ntyni@debian.org> p4raw-id: //depot/perl@33554 --- diff --git a/ext/IO/lib/IO/Socket/INET.pm b/ext/IO/lib/IO/Socket/INET.pm index f8bb338..2f0e5d1 100644 --- a/ext/IO/lib/IO/Socket/INET.pm +++ b/ext/IO/lib/IO/Socket/INET.pm @@ -27,7 +27,7 @@ my %socket_type = ( tcp => SOCK_STREAM, ); my %proto_number; $proto_number{tcp} = Socket::IPPROTO_TCP() if defined &Socket::IPPROTO_TCP; -$proto_number{upd} = Socket::IPPROTO_UDP() if defined &Socket::IPPROTO_UDP; +$proto_number{udp} = Socket::IPPROTO_UDP() if defined &Socket::IPPROTO_UDP; $proto_number{icmp} = Socket::IPPROTO_ICMP() if defined &Socket::IPPROTO_ICMP; my %proto_name = reverse %proto_number;