From 804c67a4867afb8b7ef41a3ade748cab870b788c Mon Sep 17 00:00:00 2001 From: kevlo Date: Fri, 21 Dec 2012 15:54:13 +0000 Subject: Fix socket calls on error post-r243965. Submitted by: Garrett Cooper --- bin/date/netdate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/date') diff --git a/bin/date/netdate.c b/bin/date/netdate.c index b085be4..e506e6d 100644 --- a/bin/date/netdate.c +++ b/bin/date/netdate.c @@ -85,7 +85,7 @@ netsettime(time_t tval) dest.sin_addr.s_addr = htonl((u_long)INADDR_ANY); s = socket(AF_INET, SOCK_DGRAM, 0); if (s < 0) { - if (errno != EPROTONOSUPPORT) + if (errno != EAFNOSUPPORT) warn("timed"); return (retval = 2); } -- cgit v1.1