[CodeClean] invalid typecast accepted/tizen/unified/20240307.075314 accepted/tizen/unified/toolchain/20240311.064828 accepted/tizen/unified/x/20240308.033332
authorJaeyun Jung <jy1210.jung@samsung.com>
Tue, 5 Mar 2024 03:03:53 +0000 (12:03 +0900)
committerwooksong <wook16.song@samsung.com>
Tue, 5 Mar 2024 03:15:40 +0000 (12:15 +0900)
Fix invalid typecast to get the dbus proxy.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
daemon/mlops-agent-interface.c

index ab9881a724bba70ae087191e5a6e2b44b0fd63e5..ded8abdcf01b1f8efb584b8ebfbcc4c0b1942568 100644 (file)
@@ -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: