[Git][NTPsec/ntpsec][master] 2 commits: ntp_io: fix two casts.
Gary E. Miller
gitlab at mg.gitlab.com
Fri Apr 14 03:22:08 UTC 2017
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
b2b76506 by Gary E. Miller at 2017-04-13T20:15:24-07:00
ntp_io: fix two casts.
- - - - -
dae3a2d3 by Gary E. Miller at 2017-04-13T20:19:49-07:00
ntp_packetstamp: fix discards const.
- - - - -
2 changed files:
- ntpd/ntp_io.c
- ntpd/ntp_packetstamp.c
Changes:
=====================================
ntpd/ntp_io.c
=====================================
--- a/ntpd/ntp_io.c
+++ b/ntpd/ntp_io.c
@@ -2000,7 +2000,7 @@ open_socket(
* number on each interface according to turn_off_reuse.
*/
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR,
- (char *)((turn_off_reuse)
+ (const void *)((turn_off_reuse)
? &off
: &on),
sizeof(on))) {
@@ -2050,7 +2050,7 @@ open_socket(
#endif /* IPV6_TCLASS */
if (isc_net_probe_ipv6only_bool()
&& setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY,
- (char*)&on, sizeof(on)))
+ (const void *)&on, sizeof(on)))
msyslog(LOG_ERR,
"setsockopt IPV6_V6ONLY on fails on address %s: %m",
socktoa(addr));
=====================================
ntpd/ntp_packetstamp.c
=====================================
--- a/ntpd/ntp_packetstamp.c
+++ b/ntpd/ntp_packetstamp.c
@@ -75,7 +75,7 @@ enable_packetstamps(
{
const int on = 1;
if (setsockopt(fd, SOL_SOCKET, SO_TIMESTAMPNS,
- (char*)&on, sizeof(on)))
+ (const void *)&on, sizeof(on)))
msyslog(LOG_DEBUG,
"setsockopt SO_TIMESTAMPNS on fails on address %s: %m",
socktoa(addr));
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/8e75f667dcc30795d9750f71a14baf48973c92cd...dae3a2d35e7fd289806780da90b12628be268bfb
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/8e75f667dcc30795d9750f71a14baf48973c92cd...dae3a2d35e7fd289806780da90b12628be268bfb
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/20170414/eedd43ac/attachment.html>
More information about the vc
mailing list