]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
getsockopt: 4th argument should be (void*)
authorJuergen Perlinger <perlinger@ntp.org>
Sun, 11 Feb 2018 10:47:25 +0000 (11:47 +0100)
committerJuergen Perlinger <perlinger@ntp.org>
Sun, 11 Feb 2018 10:47:25 +0000 (11:47 +0100)
bk: 5a801f3dPo-ojsU6QqF9Vvfmg5aB1A

ntpd/refclock_gpsdjson.c
ports/winnt/ntpd/ntp_iocompletionport.c

index a1fb896369d0a5b4468e1a80122fc8c2169d1406..c2d41ff07f173549b333f602dc7fdd5cca30cf7f 100644 (file)
@@ -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)
index 333bd2fb46c41afb0286973142c9ca3c3e4d0563..c5db62a8dd5f47892a142773325355eeed4c13c6 100644 (file)
@@ -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;