From: Jaeyun Jung Date: Tue, 5 Mar 2024 03:03:53 +0000 (+0900) Subject: [CodeClean] invalid typecast X-Git-Tag: accepted/tizen/unified/20240307.075314^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0dbabbecb44d25050bde94ff1f28c22f571d8ba7;p=platform%2Fcore%2Fml%2Fmlops-agent.git [CodeClean] invalid typecast Fix invalid typecast to get the dbus proxy. Signed-off-by: Jaeyun Jung --- diff --git a/daemon/mlops-agent-interface.c b/daemon/mlops-agent-interface.c index ab9881a..ded8abd 100644 --- a/daemon/mlops-agent-interface.c +++ b/daemon/mlops-agent-interface.c @@ -39,7 +39,7 @@ _get_proxy_new_for_bus_sync (ml_agent_service_type_e type) static const GBusType bus_types[] = { G_BUS_TYPE_SYSTEM, G_BUS_TYPE_SESSION }; static const size_t num_bus_types = sizeof (bus_types) / sizeof (bus_types[0]); - ml_agent_proxy_h *proxy = NULL; + ml_agent_proxy_h proxy = NULL; size_t i; switch (type) { @@ -55,7 +55,7 @@ _get_proxy_new_for_bus_sync (ml_agent_service_type_e type) break; } } - proxy = (ml_agent_proxy_h *) mlsp; + proxy = (ml_agent_proxy_h) mlsp; break; } case ML_AGENT_SERVICE_MODEL: @@ -69,7 +69,7 @@ _get_proxy_new_for_bus_sync (ml_agent_service_type_e type) if (mlsm) break; } - proxy = (ml_agent_proxy_h *) mlsm; + proxy = (ml_agent_proxy_h) mlsm; break; } case ML_AGENT_SERVICE_RESOURCE: @@ -83,7 +83,7 @@ _get_proxy_new_for_bus_sync (ml_agent_service_type_e type) if (mlsr) break; } - proxy = (ml_agent_proxy_h *) mlsr; + proxy = (ml_agent_proxy_h) mlsr; break; } default: