From: Changgyu Choi Date: Mon, 26 Oct 2020 00:54:27 +0000 (+0900) Subject: Fix coding style X-Git-Tag: accepted/tizen/6.0/unified/20201110.010753~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=faacaa784f8ff4444bfb37001809c64b2ca5e8c8;p=platform%2Fcore%2Fappfw%2Flaunchpad.git Fix coding style Change-Id: I606f1009765cd0bd78afda1951f304855415043c Signed-off-by: Changgyu Choi --- diff --git a/src/launchpad-process-pool/src/launchpad_debug.c b/src/launchpad-process-pool/src/launchpad_debug.c index 811e721..37934e0 100644 --- a/src/launchpad-process-pool/src/launchpad_debug.c +++ b/src/launchpad-process-pool/src/launchpad_debug.c @@ -32,11 +32,11 @@ #define DEBUGGER_INFO_PATH "/usr/share/aul" -static int debug_initialized; -static GList *debugger_info_list; -static debugger_info_h debugger_info; -static GList *debug_argv_list; -static GList *extra_argv_list; +static int __debug_initialized; +static GList *__debugger_info_list; +static debugger_info_h __debugger_info; +static GList *__debug_argv_list; +static GList *__extra_argv_list; int _debug_create_extra_argv(int *argc, char ***argv) { @@ -51,10 +51,10 @@ int _debug_create_extra_argv(int *argc, char ***argv) return -1; } - if (debugger_info == NULL) + if (__debugger_info == NULL) return 0; - new_argc = g_list_length(extra_argv_list); + new_argc = g_list_length(__extra_argv_list); if (new_argc == 0) return 0; @@ -65,7 +65,7 @@ int _debug_create_extra_argv(int *argc, char ***argv) } i = LOADER_ARG_PATH; - iter = g_list_first(extra_argv_list); + iter = g_list_first(__extra_argv_list); while (iter) { extra_argv = (const char *)iter->data; if (extra_argv) @@ -97,21 +97,21 @@ int _debug_create_argv(int *argc, char ***argv, bool *attach) return -1; } - if (debugger_info == NULL) + if (__debugger_info == NULL) return 0; - exe = _debugger_info_get_exe(debugger_info); + exe = _debugger_info_get_exe(__debugger_info); if (exe == NULL) return 0; - attach_str = _debugger_info_get_attach(debugger_info); + attach_str = _debugger_info_get_attach(__debugger_info); if (attach_str && strcasecmp(attach_str, "true") == 0) { *attach = true; new_argc++; } - list = _debugger_info_get_default_opt_list(debugger_info); - new_argc += g_list_length(debug_argv_list) + g_list_length(list) + 1; + list = _debugger_info_get_default_opt_list(__debugger_info); + new_argc += g_list_length(__debug_argv_list) + g_list_length(list) + 1; new_argv = (char **)calloc(new_argc, sizeof(char *)); if (new_argv == NULL) { _E("out of memory"); @@ -130,7 +130,7 @@ int _debug_create_argv(int *argc, char ***argv, bool *attach) iter = g_list_next(iter); } - iter = g_list_first(debug_argv_list); + iter = g_list_first(__debug_argv_list); while (iter) { debug_argv = (const char *)iter->data; if (debug_argv) @@ -259,7 +259,7 @@ static void __add_extra_argv(gpointer data, gpointer user_data) if (str_arr[i] == NULL) break; - extra_argv_list = g_list_append(extra_argv_list, + __extra_argv_list = g_list_append(__extra_argv_list, strdup(str_arr[i])); } @@ -294,7 +294,7 @@ static void __add_debug_argv(gpointer data, gpointer user_data) if (str_arr[i] == NULL) break; - debug_argv_list = g_list_append(debug_argv_list, + __debug_argv_list = g_list_append(__debug_argv_list, strdup(str_arr[i])); } @@ -375,41 +375,41 @@ void _debug_prepare_debugger(bundle *kb) _E("[DEBUG] Failed to redirect standard fds"); _D("[DEBUG] debugger: %s", debugger); - debugger_info = _debugger_info_find(debugger_info_list, debugger); - if (debugger_info == NULL) + __debugger_info = _debugger_info_find(__debugger_info_list, debugger); + if (__debugger_info == NULL) return; - list = _debugger_info_get_unlink_list(debugger_info); + list = _debugger_info_get_unlink_list(__debugger_info); g_list_foreach(list, __remove_file, NULL); - list = _debugger_info_get_extra_env_list(debugger_info); + list = _debugger_info_get_extra_env_list(__debugger_info); g_list_foreach(list, __set_debug_env, kb); - list = _debugger_info_get_extra_key_list(debugger_info); + list = _debugger_info_get_extra_key_list(__debugger_info); g_list_foreach(list, __add_debug_argv, kb); - list = _debugger_info_get_last_extra_key_list(debugger_info); + list = _debugger_info_get_last_extra_key_list(__debugger_info); g_list_foreach(list, __add_extra_argv, kb); } int _debug_init(void) { - if (debug_initialized) + if (__debug_initialized) return 0; - debugger_info_list = _debugger_info_load(DEBUGGER_INFO_PATH); - if (debugger_info_list == NULL) + __debugger_info_list = _debugger_info_load(DEBUGGER_INFO_PATH); + if (__debugger_info_list == NULL) return -1; - debug_initialized = 1; + __debug_initialized = 1; return 0; } void _debug_fini(void) { - if (!debug_initialized) + if (!__debug_initialized) return; - _debugger_info_unload(debugger_info_list); + _debugger_info_unload(__debugger_info_list); }