aboutsummaryrefslogtreecommitdiff
path: root/ntpdc/ntpdc.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2018-02-28 06:23:12 +0000
committerXin LI <delphij@FreeBSD.org>2018-02-28 06:23:12 +0000
commitd14ac12f8738acac881f20b4d6244cfc22c68ead (patch)
tree8888cc3c4a7235bf8abd28681330d20442bc3705 /ntpdc/ntpdc.c
parent07ac48c3644021279e113d530764a231e27490a7 (diff)
downloadsrc-d14ac12f8738acac881f20b4d6244cfc22c68ead.tar.gz
src-d14ac12f8738acac881f20b4d6244cfc22c68ead.zip
Vendor import of ntp-4.2.8p11.vendor/ntp/4.2.8p11
Notes
Notes: svn path=/vendor/ntp/dist/; revision=330102 svn path=/vendor/ntp/4.2.8p11/; revision=330103; tag=vendor/ntp/4.2.8p11
Diffstat (limited to 'ntpdc/ntpdc.c')
-rw-r--r--ntpdc/ntpdc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ntpdc/ntpdc.c b/ntpdc/ntpdc.c
index 0375d36813cd..3aeaddc1ae0c 100644
--- a/ntpdc/ntpdc.c
+++ b/ntpdc/ntpdc.c
@@ -499,7 +499,7 @@ openhost(
int optionValue = SO_SYNCHRONOUS_NONALERT;
int err;
- err = setsockopt(INVALID_SOCKET, SOL_SOCKET, SO_OPENTYPE, (char *)&optionValue, sizeof(optionValue));
+ err = setsockopt(INVALID_SOCKET, SOL_SOCKET, SO_OPENTYPE, (void *)&optionValue, sizeof(optionValue));
if (err != NO_ERROR) {
(void) fprintf(stderr, "cannot open nonoverlapped sockets\n");
exit(1);
@@ -519,7 +519,7 @@ openhost(
int rbufsize = INITDATASIZE + 2048; /* 2K for slop */
if (setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF,
- &rbufsize, sizeof(int)) == -1)
+ (void *)&rbufsize, sizeof(int)) == -1)
error("setsockopt");
}
# endif