From: Tomasz Swierczek Date: Fri, 6 Oct 2017 16:35:29 +0000 (+0200) Subject: Fix for x64 build X-Git-Tag: submit/tizen/20171006.165644^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97fa5f9a76c7efa9547238b74129eebbbad85eb9;p=platform%2Fcore%2Fsecurity%2Ftef-simulator.git Fix for x64 build Invalid typecast for socklen_t. Change-Id: Iff4034251f1c3db9a425934949ca3506767eb5ae --- 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) {