Fix select and poll use in LWPs.
[dragonfly.git] / usr.sbin / ntpd / patches / client.c.patch
blob79afc645cd669fb665ae769a517801d95c95cce7
1 $DragonFly: src/usr.sbin/ntpd/patches/Attic/client.c.patch,v 1.5 2005/04/18 18:17:20 joerg Exp $
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 @@
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();
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");
18 - T4 = gettime();
19 + T4 = gettime_corrected();
21 ntp_getmsg(buf, size, &msg);