After another look at the current changes, switch directly to the in-tree
[dragonfly.git] / usr.sbin / ntpd / patches / ntp_msg.c.patch
1 $DragonFly: src/usr.sbin/ntpd/patches/Attic/ntp_msg.c.patch,v 1.2 2004/11/09 21:29:34 joerg Exp $
2
3 --- ntp_msg.c.orig      2004-11-09 22:18:03.000000000 +0100
4 +++ ntp_msg.c   2004-11-09 22:18:28.000000000 +0100
5 @@ -74,7 +74,7 @@
6  
7  int
8  ntp_sendmsg(int fd, struct sockaddr *sa, struct ntp_msg *msg, ssize_t len,
9 -    int auth)
10 +    int auth __unused)
11  {
12         char             buf[NTP_MSGSIZE];
13         char            *p;
14 @@ -117,7 +117,7 @@
15         p += sizeof(msg->xmttime.fraction);
16  
17         if (sa != NULL)
18 -               sa_len = SA_LEN(sa);
19 +               sa_len = sa->sa_len;
20         else
21                 sa_len = 0;
22