summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-13 14:52:02 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-17 14:14:51 -0300
commit204180c7dc2e20b9b701275a3fefb52707720f54 (patch)
treeb6492d0acd40fc8387400794c9d4570d9f2e4fa5 /src/device.c
parente464fdc01d72be442e8386d9004452a1e29a9eb9 (diff)
Make use of sdp_copy_record.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/device.c b/src/device.c
index 20f46efc..4182cb98 100644
--- a/src/device.c
+++ b/src/device.c
@@ -912,7 +912,6 @@ static void update_services(struct browse_req *req, sdp_list_t *recs)
for (seq = recs; seq; seq = seq->next) {
sdp_record_t *rec = (sdp_record_t *) seq->data;
- sdp_buf_t pdu;
sdp_list_t *svcclass = NULL;
gchar *profile_uuid;
GSList *l;
@@ -961,15 +960,7 @@ static void update_services(struct browse_req *req, sdp_list_t *recs)
store_record(srcaddr, dstaddr, rec);
/* Copy record */
- if (sdp_gen_record_pdu(rec, &pdu) == 0) {
- sdp_record_t *record;
- int scanned;
-
- record = sdp_extract_pdu(pdu.data, pdu.data_size,
- &scanned);
- free(pdu.data);
- req->records = sdp_list_append(req->records, record);
- }
+ req->records = sdp_list_append(req->records, sdp_copy_record(rec));
l = g_slist_find_custom(device->uuids, profile_uuid,
(GCompareFunc) strcmp);