IO::Socket::INET unnecessarily resolves "udp"
Niko Tyni [Mon, 24 Mar 2008 23:32:24 +0000 (01:32 +0200)]
Message-Id: <1206394344-30835-1-git-send-email-ntyni@debian.org>

p4raw-id: //depot/perl@33554

ext/IO/lib/IO/Socket/INET.pm

index f8bb338..2f0e5d1 100644 (file)
@@ -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;