Fix for x64 build accepted/tizen/4.0/unified/20171010.064041 accepted/tizen/unified/20171010.063653 submit/tizen/20171006.165644 submit/tizen_4.0/20171006.170606
authorTomasz Swierczek <t.swierczek@samsung.com>
Fri, 6 Oct 2017 16:35:29 +0000 (18:35 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Fri, 6 Oct 2017 16:51:24 +0000 (18:51 +0200)
Invalid typecast for socklen_t.

Change-Id: Iff4034251f1c3db9a425934949ca3506767eb5ae

simulatordaemon/src/SecurityContext.cpp

index adff21a..5b29ce8 100644 (file)
@@ -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) {