Apply type converstions 82/277282/2
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 4 Jul 2022 10:10:30 +0000 (19:10 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 4 Jul 2022 10:15:04 +0000 (19:15 +0900)
The dest_process parameter of resource_register_cpu_inheritance_destination() and
resource_unregister_cpu_inheritance_destination() was char* type.
This patch adds forced type conversions to convert to char* type.

Change-Id: I2dfa722e3a1397e19e483e0e3d5950c3758599ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/src/launchpad.c

index 5b7eb5a1be7ba9010e31b1669005e2d2767f2d17..745ffa4e5498d277b0ab618e5ba0e3cc355ab15c 100644 (file)
@@ -3240,7 +3240,7 @@ static int __before_loop(int argc, char **argv)
        _print_hwc_log("%s(%d): END", __FUNCTION__, __LINE__);
 
        ret = resource_register_cpu_inheritance_destination(
-                       LAUNCHPAD_PROCESS_NAME, resource_st);
+                       (char*)LAUNCHPAD_PROCESS_NAME, resource_st);
        if (ret != 0) {
                _E("Failed to register cpu inheritance destination. error(%d)",
                                ret);
@@ -3254,7 +3254,7 @@ static void __after_loop(void)
        int ret;
 
        ret = resource_unregister_cpu_inheritance_destination(
-                       LAUNCHPAD_PROCESS_NAME);
+                       (char*)LAUNCHPAD_PROCESS_NAME);
        if (ret != 0) {
                _E("Failed to unregister cpu inheritance destination. "
                                "error(%d)", ret);