[PATCH obexd v0 02/12] client: Use constant instead of NULL variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mikel Astiz <mikel.astiz@xxxxxxxxxxxx>

The filename will always be NULL for capability-requesting sessions, so
it doesn't make much sense to use such field.
---
 client/manager.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/client/manager.c b/client/manager.c
index 3dd0220..3005fe8 100644
--- a/client/manager.c
+++ b/client/manager.c
@@ -510,8 +510,7 @@ static void capability_obc_session_callback(struct obc_session *session,
 	if (err != NULL)
 		goto fail;
 
-	pull = obc_transfer_get("x-obex/capability", NULL, data->filename,
-									&gerr);
+	pull = obc_transfer_get("x-obex/capability", NULL, NULL, &gerr);
 	if (pull == NULL)
 		goto fail;
 
-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux