Add static keyword for global variable 79/237979/1
authorYunmi Ha <yunmi.ha@samsung.com>
Tue, 7 Jul 2020 05:43:13 +0000 (14:43 +0900)
committerYunmi Ha <yunmi.ha@samsung.com>
Tue, 7 Jul 2020 05:43:13 +0000 (14:43 +0900)
Change-Id: I8fba40a7ea69599629d58844efdcd05e502f9748
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
src/core/log.c
src/haptic/haptic.c

index 7b9a583..f1c5897 100644 (file)
@@ -25,7 +25,7 @@ void __cyg_profile_func_enter(void *, void *)
 void __cyg_profile_func_exit(void *, void *)
        __attribute__ ((no_instrument_function));
 
-int g_trace_depth = -2;
+static int g_trace_depth = -2;
 
 void __cyg_profile_func_enter(void *func, void *caller)
 {
index 2d734a0..5ccf572 100644 (file)
@@ -127,7 +127,7 @@ static int g_handle;
 /* pattern configuration list */
 static dd_list *vib_conf_list;
 
-guint duration_timer;
+static guint duration_timer;
 
 /* haptic operation variable */
 static dd_list *h_head;
@@ -1343,7 +1343,7 @@ int haptic_probe(void)
        return haptic_module_load();
 }
 
-guint id_sig_pwr_off_state;
+static guint id_sig_pwr_off_state;
 
 void haptic_init(void)
 {