From 56647d1b678bc91f6e54a903db86c2607bf92257 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 12 Jan 2015 20:50:33 -0200 Subject: [PATCH] core: Use static for local variables This fixes warnings when compiling with cgcc/sparse. --- src/device.c | 2 +- src/gatt-client.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device.c b/src/device.c index 1236698b1..75a598402 100644 --- a/src/device.c +++ b/src/device.c @@ -82,7 +82,7 @@ #endif static DBusConnection *dbus_conn = NULL; -unsigned service_state_cb_id; +static unsigned service_state_cb_id; struct btd_disconnect_data { guint id; diff --git a/src/gatt-client.c b/src/gatt-client.c index f6ef8100c..a12c6560f 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c @@ -705,7 +705,7 @@ struct chrc_prop_data { char *str; }; -struct chrc_prop_data chrc_props[] = { +static struct chrc_prop_data chrc_props[] = { /* Default Properties */ { BT_GATT_CHRC_PROP_BROADCAST, "broadcast" }, { BT_GATT_CHRC_PROP_READ, "read" }, @@ -717,7 +717,7 @@ struct chrc_prop_data chrc_props[] = { { BT_GATT_CHRC_PROP_EXT_PROP, "extended-properties" } }; -struct chrc_prop_data chrc_ext_props[] = { +static struct chrc_prop_data chrc_ext_props[] = { /* Extended Properties */ { BT_GATT_CHRC_EXT_PROP_RELIABLE_WRITE, "reliable-write" }, { BT_GATT_CHRC_EXT_PROP_WRITABLE_AUX, "writable-auxiliaries" } -- 2.47.3