svn commit: r375210 - in head/net/ntp: . files
Xin Li
delphij at delphij.net
Mon Dec 22 07:02:59 UTC 2014
On 12/21/14 22:41, Cy Schubert wrote:
> Author: cy
> Date: Mon Dec 22 06:41:29 2014
> New Revision: 375210
> URL: https://svnweb.freebsd.org/changeset/ports/375210
> QAT: https://qat.redports.org/buildarchive/r375210/
>
> Log:
> Properly address IPV6 loopback check.
>
> Submitted by: jmg (via twitter)
>
> -.if ${PORT_OPTIONS:MMX4200}
> -BROKEN= Fails to compile when MX4200 is enabled.
> -.endif
> -
> DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}4
>
I think you need the attached patch.
Cheers,
-------------- next part --------------
--- ntpd/refclock_mx4200.c.orig 2014-12-19 11:56:52 UTC
+++ ntpd/refclock_mx4200.c
@@ -1572,7 +1572,7 @@ mx4200_debug(struct peer *peer, char *fm
* Print debug message to stdout
* In the future, we may want to get get more creative...
*/
- mvprintf(fmt, ap);
+ vprintf(fmt, ap);
va_end(ap);
}
@@ -1613,11 +1613,11 @@ mx4200_send(peer, fmt, va_alist)
cp = buf;
*cp++ = '$';
- n = VSNPRINTF((cp, sizeof(buf) - 1, fmt, ap));
+ n = vsnprintf(cp, sizeof(buf) - 1, fmt, ap);
ck = mx4200_cksum(cp, n);
cp += n;
++n;
- n += SNPRINTF((cp, sizeof(buf) - n - 5, "*%02X\r\n", ck));
+ n += snprintf(cp, sizeof(buf) - n - 5, "*%02X\r\n", ck);
m = write(pp->io.fd, buf, (unsigned)n);
if (m < 0)
More information about the svn-ports-head
mailing list