From fb8e8d64e8f4eb5de543a883dd6a73f9cc568692 Mon Sep 17 00:00:00 2001 From: charnier Date: Mon, 27 Oct 1997 07:41:12 +0000 Subject: ntohl->htonl. OKed by: Bruce --- usr.sbin/timed/timed/measure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/timed/timed/measure.c b/usr.sbin/timed/timed/measure.c index 6cdb527..0882d5e 100644 --- a/usr.sbin/timed/timed/measure.c +++ b/usr.sbin/timed/timed/measure.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)measure.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: measure.c,v 1.4 1997/10/22 06:19:48 charnier Exp $"; #endif /* not lint */ #include "globals.h" @@ -151,7 +151,7 @@ measure(maxmsec, wmsec, hname, addr, print) */ if (trials < TRIALS) { trials++; - oicp->icmp_otime = ntohl((tcur.tv_sec % SECDAY) * 1000 + oicp->icmp_otime = htonl((tcur.tv_sec % SECDAY) * 1000 + tcur.tv_usec / 1000); oicp->icmp_cksum = 0; oicp->icmp_cksum = in_cksum((u_short*)oicp, -- cgit v1.1