summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2008-10-01 08:46:59 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2008-10-01 08:46:59 +0000
commitcc549c00ad3eed2dc599f49e1f42bda12fe7882d (patch)
treea77f1cc67d452ebc3d512b56e482a64bfa4d0dee
parentca6c7f2a93115090bac00c151bfc92ca1e2cacaf (diff)
give a less confusing error message on bindresvport() failure; ok
matthieu@ millert@
-rw-r--r--bin/date/netdate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/date/netdate.c b/bin/date/netdate.c
index e5d010d4946..b100d20a7a7 100644
--- a/bin/date/netdate.c
+++ b/bin/date/netdate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netdate.c,v 1.16 2006/04/25 15:41:07 deraadt Exp $ */
+/* $OpenBSD: netdate.c,v 1.17 2008/10/01 08:46:58 otto Exp $ */
/* $NetBSD: netdate.c,v 1.10 1995/09/07 06:21:06 jtc Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)netdate.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: netdate.c,v 1.16 2006/04/25 15:41:07 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: netdate.c,v 1.17 2008/10/01 08:46:58 otto Exp $";
#endif
#endif /* not lint */
@@ -104,7 +104,7 @@ netsettime(time_t tval)
sin.sin_len = sizeof(struct sockaddr_in);
sin.sin_family = AF_INET;
if (bindresvport(s, &sin) < 0) {
- warnx("all ports in use");
+ warn("bindresvport");
goto bad;
}
msg.tsp_type = TSP_SETDATE;