diff options
author | Cy Schubert <cy@FreeBSD.org> | 2015-02-05 20:53:33 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2015-02-05 20:53:33 +0000 |
commit | f7cba3a80d9ebefc57776fffd17a4ae68f72e494 (patch) | |
tree | dc1c5074828f0c5fafe2fb8f5599339dfdc5bc97 /ntpd/refclock_mx4200.c | |
parent | 44a728f815af203cd7a91db83b06325818433463 (diff) | |
download | src-f7cba3a80d9ebefc57776fffd17a4ae68f72e494.tar.gz src-f7cba3a80d9ebefc57776fffd17a4ae68f72e494.zip |
Vendor import ntp-4.2.8p1.vendor/ntp/4.2.8p1
Approved by: roberto
Notes
Notes:
svn path=/vendor/ntp/dist/; revision=278284
svn path=/vendor/ntp/4.2.8p1/; revision=278285; tag=vendor/ntp/4.2.8p1
Diffstat (limited to 'ntpd/refclock_mx4200.c')
-rw-r--r-- | ntpd/refclock_mx4200.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ntpd/refclock_mx4200.c b/ntpd/refclock_mx4200.c index 16f83f0c91e8..c9422290d39a 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... */ - vprintf(fmt, ap); + mvprintf(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) |