[Git][NTPsec/ntpsec][master] Fix for Issue #339 (-Wsign-conversion)
Hal Murray
gitlab at mg.gitlab.com
Wed Jun 7 09:47:17 UTC 2017
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
7c0008c9 by Hal Murray at 2017-06-07T02:46:10-07:00
Fix for Issue #339 (-Wsign-conversion)
- - - - -
1 changed file:
- ntpd/ntp_io.c
Changes:
=====================================
ntpd/ntp_io.c
=====================================
--- a/ntpd/ntp_io.c
+++ b/ntpd/ntp_io.c
@@ -2329,9 +2329,9 @@ read_network_packet(
msghdr.msg_flags = 0;
msghdr.msg_control = (void *)&control;
msghdr.msg_controllen = sizeof(control);
- rb->recv_length = recvmsg(fd, &msghdr, 0);
+ buflen = recvmsg(fd, &msghdr, 0);
- buflen = (ssize_t)rb->recv_length;
+ rb->recv_length = (size_t)buflen;
if (buflen == 0 || (buflen == -1 &&
(EWOULDBLOCK == errno
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7c0008c91645084fe46b246074bdf9506e7abafc
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7c0008c91645084fe46b246074bdf9506e7abafc
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/20170607/b8e7bb63/attachment.html>
More information about the vc
mailing list