[Git][NTPsec/ntpsec][master] Fixed warnings in ntpd/ntp_signd.c when ENABLE_MSSNTP is on

Hal Murray gitlab at mg.gitlab.com
Tue Apr 25 03:49:42 UTC 2017


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
2e2911b0 by Hal Murray at 2017-04-24T20:49:09-07:00
Fixed warnings in ntpd/ntp_signd.c when ENABLE_MSSNTP is on

- - - - -


1 changed file:

- ntpd/ntp_signd.c


Changes:

=====================================
ntpd/ntp_signd.c
=====================================
--- a/ntpd/ntp_signd.c
+++ b/ntpd/ntp_signd.c
@@ -58,7 +58,7 @@ write_all(int fd, const void *buf, size_t len)
 	while (len) {
 		int n = write(fd, buf, len);
 		if (n <= 0) return total;
-		buf = n + (char *)buf;
+		buf = n + (const char *)buf;
 		len -= (u_int)n;
 		total += (u_int)n;
 	}
@@ -215,7 +215,7 @@ send_via_ntp_signd(
 #ifdef DEBUG
 				if (debug)
 					printf(
-						"transmit ntp_signd packet: at %ld %s->%s mode %d keyid %08x len %d\n",
+						"transmit ntp_signd packet: at %lu %s->%s mode %d keyid %08x len %d\n",
 						current_time, socktoa(&rbufp->dstadr->sin),
 						socktoa(&rbufp->recv_srcadr), xmode, xkeyid, sendlen);
 #endif



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/2e2911b0d0c7dae5234d42eb3ca425388af58f7f

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/2e2911b0d0c7dae5234d42eb3ca425388af58f7f
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170425/a3e6c929/attachment.html>


More information about the vc mailing list