From 1aab257442e019b4037d24b5d522af2ed02915d5 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Thu, 14 Mar 2019 15:11:12 +0900 Subject: [PATCH] Fix the ASAN build error Change-Id: I55fb907d0be93419bcf32b35f84b7b71be16b7cd Signed-off-by: DoHyun Pyun --- bt-api/bt-gatt-service.c | 8 ++++---- bt-api/bt-telephony.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bt-api/bt-gatt-service.c b/bt-api/bt-gatt-service.c index 5f4f4eb..0842b8a 100644 --- a/bt-api/bt-gatt-service.c +++ b/bt-api/bt-gatt-service.c @@ -155,15 +155,15 @@ int bluetooth_gatt_convert_perm2string( #define NUMBER_OF_FLAGS 10 -GDBusConnection *g_conn; -guint owner_id; -guint manager_id; +static GDBusConnection *g_conn; +static guint owner_id; +static guint manager_id; static gboolean new_service = FALSE; static gboolean new_char = FALSE; static int serv_id = 1; static bool is_server_started = false; -GCancellable *register_cancel; +static GCancellable *register_cancel; /* Introspection data for the service we are exporting */ static const gchar service_introspection_xml[] = diff --git a/bt-api/bt-telephony.c b/bt-api/bt-telephony.c index fde8499..8e531ba 100644 --- a/bt-api/bt-telephony.c +++ b/bt-api/bt-telephony.c @@ -49,8 +49,8 @@ typedef struct { } bt_telephony_info_t; -char *src_addr = NULL; -guint owner_id = 0; +static char *src_addr = NULL; +static guint owner_id = 0; #define BLUETOOTH_TELEPHONY_ERROR (__bluetooth_telephony_error_quark()) -- 2.7.4