[Git][NTPsec/ntpsec][master] Fix const warning from FreeBSD
Hal Murray
gitlab at mg.gitlab.com
Sat Apr 22 02:06:04 UTC 2017
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
37bd8424 by Hal Murray at 2017-04-21T15:47:33-07:00
Fix const warning from FreeBSD
- - - - -
1 changed file:
- ntpd/ntp_packetstamp.c
Changes:
=====================================
ntpd/ntp_packetstamp.c
=====================================
--- a/ntpd/ntp_packetstamp.c
+++ b/ntpd/ntp_packetstamp.c
@@ -62,7 +62,7 @@ enable_packetstamps(
{
const int on = 1;
if (setsockopt(fd, SOL_SOCKET, SO_TIMESTAMP,
- (const char*)&on, sizeof(on)))
+ (const void*)&on, sizeof(on)))
msyslog(LOG_DEBUG,
"setsockopt SO_TIMESTAMP on fails on address %s: %m",
socktoa(addr));
@@ -88,7 +88,7 @@ enable_packetstamps(
{
const int on = 1;
if (setsockopt(fd, SOL_SOCKET, SO_BINTIME,
- (char*)&on, sizeof(on)))
+ (const void*)&on, sizeof(on)))
msyslog(LOG_DEBUG,
"setsockopt SO_BINTIME on fails on address %s: %m",
socktoa(addr));
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/37bd8424ca3e94adbff9226360d25804545ddd61
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/37bd8424ca3e94adbff9226360d25804545ddd61
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/20170422/2052aac6/attachment.html>
More information about the vc
mailing list