diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-13 14:52:02 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-17 14:14:51 -0300 |
commit | 204180c7dc2e20b9b701275a3fefb52707720f54 (patch) | |
tree | b6492d0acd40fc8387400794c9d4570d9f2e4fa5 | |
parent | e464fdc01d72be442e8386d9004452a1e29a9eb9 (diff) |
Make use of sdp_copy_record.
-rw-r--r-- | src/device.c | 11 |
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); |