From 738da7af61a3cdb38f5a28165166978fee069b72 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 13 Oct 2004 13:19:45 +0000 Subject: thinko, htonl() -> ntohl(). as we don't use the value in question effect zero --- usr.sbin/ntpd/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ntpd') diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c index 632e810df73..cc9946b9da1 100644 --- a/usr.sbin/ntpd/client.c +++ b/usr.sbin/ntpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.38 2004/10/08 12:42:25 henning Exp $ */ +/* $OpenBSD: client.c,v 1.39 2004/10/13 13:19:44 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -221,7 +221,7 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime) p->reply[p->shift].status.precision = msg.precision; p->reply[p->shift].status.rootdelay = sfp_to_d(msg.distance); p->reply[p->shift].status.rootdispersion = sfp_to_d(msg.dispersion); - p->reply[p->shift].status.refid = htonl(msg.refid); + p->reply[p->shift].status.refid = ntohl(msg.refid); p->reply[p->shift].status.reftime = lfp_to_d(msg.reftime); p->reply[p->shift].status.poll = msg.ppoll; -- cgit v1.2.3