summaryrefslogtreecommitdiffstats
path: root/bin/date/netdate.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/date/netdate.c')
-rw-r--r--bin/date/netdate.c2
1 files changed, 1 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud