From d0939d866a59e86129df5c77deeff53823ed5457 Mon Sep 17 00:00:00 2001 From: Yunmi Ha Date: Tue, 7 Jul 2020 14:43:13 +0900 Subject: [PATCH] Add static keyword for global variable Change-Id: I8fba40a7ea69599629d58844efdcd05e502f9748 Signed-off-by: Yunmi Ha --- src/core/log.c | 2 +- src/haptic/haptic.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/log.c b/src/core/log.c index 7b9a583..f1c5897 100644 --- a/src/core/log.c +++ b/src/core/log.c @@ -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) { diff --git a/src/haptic/haptic.c b/src/haptic/haptic.c index 2d734a0..5ccf572 100644 --- a/src/haptic/haptic.c +++ b/src/haptic/haptic.c @@ -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) { -- 2.7.4