Sync with OpenBSD. The ntpd -s is included now.
[dragonfly.git] / usr.sbin / ntpd / patches / client.c.patch
1 $DragonFly: src/usr.sbin/ntpd/patches/Attic/client.c.patch,v 1.5 2005/04/18 18:17:20 joerg Exp $
2
3 --- client.c    25 Feb 2005 16:43:19 -0000      1.6
4 +++ client.c    12 Apr 2005 20:13:45 -0000
5 @@ -155,7 +155,7 @@
6  
7         p->query->msg.xmttime.int_partl = arc4random();
8         p->query->msg.xmttime.fractionl = arc4random();
9 -       p->query->xmttime = gettime();
10 +       p->query->xmttime = gettime_corrected();
11  
12         if (ntp_sendmsg(p->query->fd, NULL, &p->query->msg,
13             NTP_MSGSIZE_NOAUTH, 0) == -1) {
14 @@ -190,7 +190,7 @@
15                         fatal("recvfrom");
16         }
17  
18 -       T4 = gettime();
19 +       T4 = gettime_corrected();
20  
21         ntp_getmsg(buf, size, &msg);
22