summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2010-10-01 12:13:58 -0400
committerJohan Hedberg <johan.hedberg@nokia.com>2010-10-04 17:06:49 +0200
commit4a6f6edd6e90f06f0ae0818f752b4157a1ff68c2 (patch)
tree62f61b26549ff4130930f3a18881fed2a4d7be84
parenta25fb7211bdb6fea517dd8bf913989ad04892717 (diff)
downloadbluez-4a6f6edd6e90f06f0ae0818f752b4157a1ff68c2.tar.gz
Rename global "handle" variable to "sdp_handle"
The "handle" name is too generic for a global variable.
-rw-r--r--src/attrib-server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/attrib-server.c b/src/attrib-server.c
index bec981276..80a634064 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
@@ -68,7 +68,7 @@ struct group_elem {
static GIOChannel *l2cap_io = NULL;
static GIOChannel *le_io = NULL;
static GSList *clients = NULL;
-static uint32_t handle = 0;
+static uint32_t sdp_handle = 0;
static uuid_t prim_uuid = { .type = SDP_UUID16, .value.uuid16 = GATT_PRIM_SVC_UUID };
static uuid_t snd_uuid = { .type = SDP_UUID16, .value.uuid16 = GATT_SND_SVC_UUID };
@@ -651,7 +651,7 @@ int attrib_server_init(void)
return -1;
}
- handle = record->handle;
+ sdp_handle = record->handle;
return 0;
}
@@ -682,8 +682,8 @@ void attrib_server_exit(void)
g_slist_free(clients);
- if (handle)
- remove_record_from_server(handle);
+ if (sdp_handle)
+ remove_record_from_server(sdp_handle);
}
int attrib_db_add(uint16_t handle, uuid_t *uuid, const uint8_t *value, int len)