aboutsummaryrefslogtreecommitdiffstats
path: root/ntpd/refclock_mx4200.c
diff options
context:
space:
mode:
authorOllivier Robert <roberto@FreeBSD.org>2014-12-22 22:22:10 +0000
committerOllivier Robert <roberto@FreeBSD.org>2014-12-22 22:22:10 +0000
commit44a728f815af203cd7a91db83b06325818433463 (patch)
tree7e245687dfe3f06f1ff6c21cc0e37b95c27b876f /ntpd/refclock_mx4200.c
parentc59fb7145ed811db5b9a81ec48d2e993ec5a9644 (diff)
downloadsrc-44a728f815af203cd7a91db83b06325818433463.tar.gz
src-44a728f815af203cd7a91db83b06325818433463.zip
Add the two patches from the port in net/ntp/files to fix compilation
issues with vendor code. r375210 & r375215.
Notes
Notes: svn path=/vendor/ntp/dist/; revision=276093
Diffstat (limited to 'ntpd/refclock_mx4200.c')
-rw-r--r--ntpd/refclock_mx4200.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ntpd/refclock_mx4200.c b/ntpd/refclock_mx4200.c
index c9422290d39a..16f83f0c91e8 100644
--- a/ntpd/refclock_mx4200.c
+++ b/ntpd/refclock_mx4200.c
@@ -1572,7 +1572,7 @@ mx4200_debug(struct peer *peer, char *fmt, ...)
* 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)