[PATCH 1/3] test/agent.c: honour commandline --device

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

 



---
 test/agent.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/agent.c b/test/agent.c
index b256f52..334618e 100644
--- a/test/agent.c
+++ b/test/agent.c
@@ -281,9 +281,10 @@ static int unregister_agent(DBusConnection *conn, const char *device_path,
 
 static char *get_device(const char *device)
 {
-	char *path;
+	char *path = "/org/bluez/hci0";
 
-	path = strdup("/org/bluez/hci0");
+	if (device)
+		path = strdup(device);
 
 	return path;
 }
-- 
1.6.3.3

--
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