void *security_server_thread(void *param)
{
int client_sockfd = -1;
- int server_sockfd, retval;
+ int retval;
basic_header basic_hdr;
struct security_server_thread_param *my_param;
my_param = (struct security_server_thread_param*) param;
client_sockfd = my_param->client_sockfd;
- server_sockfd = my_param->server_sockfd;
/* Receive request header */
retval = recv_hdr(client_sockfd, &basic_hdr);
break;
};
} else if (interfaceID == INTERFACE_CHECK) {
- switch(msgType) {
+ switch(static_cast<CookieCall>(msgType)) {
case CookieCall::CHECK_PID:
LogDebug("Entering pid-by-cookie server side handler");
retval = pidByCookieRequest(buffer, send);
};
} else if (interfaceID == INTERFACE_CHECK_TMP) {
//TODO: Merge this interface with INTERFACE_CHECK after INTERFACE_CHECK will be secured by smack
- switch(msgType) {
+ switch(static_cast<CookieCall>(msgType)) {
case CookieCall::CHECK_UID:
LogDebug("Entering get-uid-by-cookie side handler");
retval = uidByCookieRequest(buffer, send);