From 1b3a318d830f7e1e0fa6cf7b8873bd788dd34e2d Mon Sep 17 00:00:00 2001 From: itojun Date: Wed, 24 Dec 2003 09:14:21 +0000 Subject: typo --- nametoaddr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nametoaddr.c') diff --git a/nametoaddr.c b/nametoaddr.c index 70b64ce..02f1b48 100644 --- a/nametoaddr.c +++ b/nametoaddr.c @@ -24,7 +24,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.72 2003-12-24 08:27:04 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.73 2003-12-24 09:14:21 itojun Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -124,7 +124,7 @@ pcap_nametoaddrinfo(const char *name) memset(&hints, 0, sizeof(hints)); hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_STREAM; /*not really*/ - hints.ai_socktype = IPPROTO_TCP; /*not really*/ + hints.ai_protocol = IPPROTO_TCP; /*not really*/ error = getaddrinfo(name, NULL, &hints, &res); if (error) return NULL; -- cgit v1.2.3