summaryrefslogtreecommitdiff
path: root/net/ntp/files/patch-ntpd__refclock__mx4200.c
blob: 6a809f3ad19f5e841d96514306df7316d42c5155 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- ntpd/refclock_mx4200.c.orig	2017-03-21 06:04:19.000000000 -0700
+++ ntpd/refclock_mx4200.c	2017-03-22 22:34:58.631582000 -0700
@@ -1572,7 +1572,7 @@
 		 * 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);
 	}
@@ -1614,14 +1614,14 @@
 #else
 	va_start(ap);
 #endif /* __STDC__ */
-	n = VSNPRINTF((cp, (size_t)(ep - cp), fmt, ap));
+	n = vsnprintf(cp, (size_t)(ep - cp), fmt, ap);
 	va_end(ap);
 	if (n < 0 || (size_t)n >= (size_t)(ep - cp))
 		goto overflow;
 
 	ck = mx4200_cksum(cp, n);
 	cp += n;	    
-	n = SNPRINTF((cp, (size_t)(ep - cp), "*%02X\r\n", ck));
+	n = snprintf(cp, (size_t)(ep - cp), "*%02X\r\n", ck);
 	if (n < 0 || (size_t)n >= (size_t)(ep - cp))
 		goto overflow;
 	cp += n;