Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist/ntpd initialize min_dist
details: https://anonhg.NetBSD.org/src/rev/58a279a4518f
branches: trunk
changeset: 773418:58a279a4518f
user: kardel <kardel%NetBSD.org@localhost>
date: Wed Feb 01 21:21:25 2012 +0000
description:
initialize min_dist
diffstat:
external/bsd/ntp/dist/ntpd/ntp_io.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r db738695c243 -r 58a279a4518f external/bsd/ntp/dist/ntpd/ntp_io.c
--- a/external/bsd/ntp/dist/ntpd/ntp_io.c Wed Feb 01 20:49:09 2012 +0000
+++ b/external/bsd/ntp/dist/ntpd/ntp_io.c Wed Feb 01 21:21:25 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntp_io.c,v 1.8 2012/02/01 20:48:01 kardel Exp $ */
+/* $NetBSD: ntp_io.c,v 1.9 2012/02/01 21:21:25 kardel Exp $ */
/*
* ntp_io.c - input/output routines for ntpd. The socket-opening code
@@ -3801,7 +3801,9 @@
sockaddr_u addr_dist;
sockaddr_u min_dist;
+
winner = NULL;
+ min_dist = *addr;
for (ep = ep_list; ep != NULL; ep = ep->elink) {
if (ep->ignore_packets ||
Home |
Main Index |
Thread Index |
Old Index