[Git][NTPsec/ntpsec][master] Fix compiler warnings in ntp_intercept
Hal Murray
gitlab at mg.gitlab.com
Fri Jul 8 04:24:01 UTC 2016
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
438fdc29 by Hal Murray at 2016-07-07T21:23:11-07:00
Fix compiler warnings in ntp_intercept
- - - - -
1 changed file:
- ntpd/ntp_intercept.c
Changes:
=====================================
ntpd/ntp_intercept.c
=====================================
--- a/ntpd/ntp_intercept.c
+++ b/ntpd/ntp_intercept.c
@@ -766,6 +766,7 @@ ssize_t intercept_recvfrom(int sockfd, void *buf, size_t len, int flags,
{
get_operation("recvfrom ");
/* FIXME: replay implementation here */
+ recvlen = 0; /* squish compiler warning */
} else {
char *cp;
snprintf(pkt_dump, sizeof(pkt_dump),
@@ -796,6 +797,7 @@ SOCKET intercept_open_socket(sockaddr_u *addr,
{
get_operation("open_socket ");
/* FIXME: replay implementation here */
+ sock = 0; /* squish compiler warnings */
} else {
snprintf(open_dump, sizeof(open_dump),
"open_socket %s %d %d %s\n",
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/438fdc29aef1ade45504d20915344577fad8366e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160708/8d80321d/attachment.html>
More information about the vc
mailing list