Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59d4a4dd authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "recvfrom takes a non-const pointer." am: 96660b37 am: 2f4c6e3d

am: c41a11a0

Change-Id: I48c43a9675568c6b6edbf2a94f51a21770196f2c
parents d14f0980 c41a11a0
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -615,12 +615,11 @@ bool CommonTimeServer::handlePacket() {

    ssize_t recvBytes = recvfrom(
            mSocket, buf, sizeof(buf), 0,
            reinterpret_cast<const sockaddr *>(&srcAddr), &srcAddrLen);
            reinterpret_cast<sockaddr *>(&srcAddr), &srcAddrLen);

    if (recvBytes < 0) {
        mBadPktLog.log(ANDROID_LOG_ERROR, LOG_TAG,
                       "recvfrom failed (res %d, errno %d)",
                       recvBytes, errno);
        mBadPktLog.log(ANDROID_LOG_ERROR, LOG_TAG, "recvfrom failed (%s)",
                       strerror(errno));
        return false;
    }