Skip to contentSkip to conversation

Fix valgrind error report

PATCH In review Brian Gix 2 participants 3 messages Feb 24, 2011 Bluetooth drivers

lore
Share & tools
lore

Brian Gix

author
#0 lore raw

cover Fix valgrind error report

I don't have valgrind, but the error was pretty straight forward, and this should fix it.

Signature · 4 lines
Brian Gix
[email protected]
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
author
#1 lore raw

PATCH 1/1 Remove unneeded Service ID from service SDP record

---
 src/attrib-server.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
src/attrib-server.c +1 -3
index 7ec0f56..08a9b23 100644
@@ -89,7 +89,7 @@ static uuid_t snd_uuid = {
 static sdp_record_t *server_record_new(uuid_t *uuid, uint16_t start, uint16_t end)
 {
 	sdp_list_t *svclass_id, *apseq, *proto[2], *root, *aproto;
-	uuid_t root_uuid, proto_uuid, gatt_uuid, l2cap;
+	uuid_t root_uuid, proto_uuid, l2cap;
 	sdp_record_t *record;
 	sdp_data_t *psm, *sh, *eh;
 	uint16_t lp = GATT_PSM;
@@ -130,8 +130,6 @@ static sdp_record_t *server_record_new(uuid_t *uuid, uint16_t start, uint16_t en
 	aproto = sdp_list_append(NULL, apseq);
 	sdp_set_access_protos(record, aproto);
 
-	sdp_set_service_id(record, gatt_uuid);
-
 	sdp_data_free(psm);
 	sdp_data_free(sh);
 	sdp_data_free(eh);
Signature · 7 lines
1.7.1

-- 
Brian Gix
[email protected]
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
#2 lore raw

Re: [PATCH 1/1] Remove unneeded Service ID from service SDP record

Hi Brian,

Quoted 3 lines · Brian Gix
---
 src/attrib-server.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

Pushed upstream. Thanks.

Johan