[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-bluetooth
Subject:    [PATCH 1/3] test/agent.c: honour commandline --device
From:       Filippo Giunchedi <filippo () esaurito ! net>
Date:       2009-06-30 15:16:46
Message-ID: 1246375008-8282-1-git-send-email-filippo () esaurito ! net
[Download RAW message or body]

---
 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic