From 97fa5f9a76c7efa9547238b74129eebbbad85eb9 Mon Sep 17 00:00:00 2001 From: Tomasz Swierczek Date: Fri, 6 Oct 2017 18:35:29 +0200 Subject: [PATCH] Fix for x64 build Invalid typecast for socklen_t. Change-Id: Iff4034251f1c3db9a425934949ca3506767eb5ae --- simulatordaemon/src/SecurityContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulatordaemon/src/SecurityContext.cpp b/simulatordaemon/src/SecurityContext.cpp index adff21a..5b29ce8 100644 --- a/simulatordaemon/src/SecurityContext.cpp +++ b/simulatordaemon/src/SecurityContext.cpp @@ -67,7 +67,7 @@ std::string SecurityContext::getCaFullPathFromPkgId(char* pkgid) { p_tzplatform_context p_ctx(ctx, &tzplatform_context_destroy); - auto len = sizeof(struct ucred); + socklen_t len = (socklen_t) sizeof(struct ucred); struct ucred ucred; if (getsockopt(connFd, SOL_SOCKET, SO_PEERCRED, &ucred, &len) == -1) { -- 2.7.4