diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-10-13 13:19:45 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-10-13 13:19:45 +0000 |
commit | 738da7af61a3cdb38f5a28165166978fee069b72 (patch) | |
tree | d426e4e670db7511214d90b7a798cfebf890b4f0 /usr.sbin/ntpd | |
parent | 7601d4c00fdf5401cebc9864a8298b0ee3260030 (diff) |
thinko, htonl() -> ntohl(). as we don't use the value in question effect zero
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r-- | usr.sbin/ntpd/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <henning@openbsd.org> @@ -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; |