From: Juergen Perlinger Date: Sun, 11 Feb 2018 10:47:25 +0000 (+0100) Subject: getsockopt: 4th argument should be (void*) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=937ab185c1a1cdc00dd7bf86c72983255428095e;p=thirdparty%2Fntp.git getsockopt: 4th argument should be (void*) bk: 5a801f3dPo-ojsU6QqF9Vvfmg5aB1A --- diff --git a/ntpd/refclock_gpsdjson.c b/ntpd/refclock_gpsdjson.c index a1fb89636..c2d41ff07 100644 --- a/ntpd/refclock_gpsdjson.c +++ b/ntpd/refclock_gpsdjson.c @@ -1999,7 +1999,7 @@ gpsd_test_socket( /* check for socket error */ ec = 0; lc = sizeof(ec); - rc = getsockopt(up->fdt, SOL_SOCKET, SO_ERROR, &ec, &lc); + rc = getsockopt(up->fdt, SOL_SOCKET, SO_ERROR, (void *)&ec, &lc); if (-1 == rc || 0 != ec) { const char *errtxt; if (0 == ec) diff --git a/ports/winnt/ntpd/ntp_iocompletionport.c b/ports/winnt/ntpd/ntp_iocompletionport.c index 333bd2fb4..c5db62a8d 100644 --- a/ports/winnt/ntpd/ntp_iocompletionport.c +++ b/ports/winnt/ntpd/ntp_iocompletionport.c @@ -643,7 +643,7 @@ socketErrorCheck( case ERROR_HOST_UNREACHABLE: oval = 0; olen = sizeof(oval); - getsockopt(ctx->io.sfd, SOL_SOCKET, SO_ERROR, (char*)&oval, &olen); + getsockopt(ctx->io.sfd, SOL_SOCKET, SO_ERROR, (void *)&oval, &olen); retCode = PKT_DROP; break;