From 068b9ba5eaf6ae7ee442adc6b6fa2635953cce15 Mon Sep 17 00:00:00 2001 From: "jiyong.min" Date: Fri, 21 Oct 2022 14:26:48 +0900 Subject: [PATCH] Fix typecast issue of 'socklen_t' Change-Id: I6a2d38b71793785e4d755d660154ad8bf59515c6 --- packaging/capi-media-controller.spec | 2 +- svc/media_controller_socket.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/capi-media-controller.spec b/packaging/capi-media-controller.spec index b1230fb..854c876 100644 --- a/packaging/capi-media-controller.spec +++ b/packaging/capi-media-controller.spec @@ -1,6 +1,6 @@ Name: capi-media-controller Summary: A media controller library in Tizen Native API -Version: 0.2.30 +Version: 0.2.31 Release: 1 Group: Multimedia/API License: Apache-2.0 diff --git a/svc/media_controller_socket.c b/svc/media_controller_socket.c index 24f174f..b1282e4 100644 --- a/svc/media_controller_socket.c +++ b/svc/media_controller_socket.c @@ -147,7 +147,7 @@ int mc_ipc_accept_client_tcp(int serv_sock, int *client_sock) if (client_sock == NULL) return MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER; - client_addr_len = sizeof(client_addr); + client_addr_len = (socklen_t)sizeof(client_addr); if ((sockfd = accept(serv_sock, (struct sockaddr *)&client_addr, &client_addr_len)) < 0) { mc_stderror("accept failed"); *client_sock = -1; -- 2.7.4