From c901d727e37949af62dfbe801e5053c965563f85 Mon Sep 17 00:00:00 2001 From: sooyeon Date: Thu, 30 Jun 2022 11:48:50 +0900 Subject: [PATCH] Remove unnecessary command and Fix return value in vcd_client_widget_get_foreground_pid() Change-Id: I686738186f46907a74adccf412bc2295a1b79655 Signed-off-by: sooyeon --- packaging/voice-control.spec | 4 ---- server/vcd_client_data.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packaging/voice-control.spec b/packaging/voice-control.spec index 952b983..eff8088 100644 --- a/packaging/voice-control.spec +++ b/packaging/voice-control.spec @@ -154,10 +154,6 @@ make %{?jobs:-j%jobs} %install rm -rf %{buildroot} -%if "%{tizen_profile_name}" == "tv" -mv -f org.tizen.voice.vcserver.tv.service org.tizen.voice.vcserver.service -%endif - %make_install %if 0%{?gcov:1} diff --git a/server/vcd_client_data.c b/server/vcd_client_data.c index 404d52f..057d919 100644 --- a/server/vcd_client_data.c +++ b/server/vcd_client_data.c @@ -1828,7 +1828,7 @@ int vcd_client_widget_get_foreground_pid() widget = __widget_get_element(fg_pid); if (NULL == widget) { SLOG(LOG_WARN, TAG_VCD, "[Client Data] Not found foreground pid of widget"); - return VCD_ERROR_INVALID_PARAMETER; + return -1; } return widget->pid; -- 2.34.1