Diff between 20340654cf4221da492cc5bc26764dfba5f80c9b and 84c4c3bedcfb65c27f54ffac452b66608498ba36

Changed Files

File Additions Deletions Status
obexd/client/pbap.c +1 -1 modified
obexd/plugins/filesystem.c +1 -1 modified
obexd/plugins/pbap.c +1 -1 modified

Full Patch

diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c
index 4428c14..48dbac1 100644
--- a/obexd/client/pbap.c
+++ b/obexd/client/pbap.c
@@ -520,7 +520,7 @@ static DBusMessage *pull_vcard_listing(struct pbap_data *pbap,
 	p = fill_apparam(p, &count, MAXLISTCOUNT_TAG, MAXLISTCOUNT_LEN);
 
 	offset = GUINT16_TO_BE(offset);
-	p = fill_apparam(p, &offset, LISTSTARTOFFSET_TAG, LISTSTARTOFFSET_LEN);
+	fill_apparam(p, &offset, LISTSTARTOFFSET_TAG, LISTSTARTOFFSET_LEN);
 
 	request = pending_request_new(pbap, message);
 
diff --git a/obexd/plugins/filesystem.c b/obexd/plugins/filesystem.c
index 677df76..e664fc5 100644
--- a/obexd/plugins/filesystem.c
+++ b/obexd/plugins/filesystem.c
@@ -604,7 +604,7 @@ ssize_t string_read(void *object, void *buf, size_t count)
 
 	len = MIN(string->len, count);
 	memcpy(buf, string->str, len);
-	string = g_string_erase(string, 0, len);
+	g_string_erase(string, 0, len);
 
 	return len;
 }
diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index c6d7cfc..c7e792a 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
@@ -961,7 +961,7 @@ static ssize_t array_read(GByteArray *array, void *buf, size_t count)
 
 	len = MIN(array->len, count);
 	memcpy(buf, array->data, len);
-	array = g_byte_array_remove_range(array, 0, len);
+	g_byte_array_remove_range(array, 0, len);
 
 	return len;
 }