OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f84a47
)
gatttool: Remove check for bluetooth address parameter on gatt_connect()
author
Eder Ruiz Maria
<eder.ruiz@openbossa.org>
Tue, 2 Apr 2013 23:31:20 +0000
(19:31 -0400)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Sun, 7 Apr 2013 15:11:03 +0000
(18:11 +0300)
This check is more appropriate to be done by callers of gatt_connect().
This is already done on interactive mode in attrib/interactive.c and is
now also done in non-interactive mode.
attrib/utils.c
patch
|
blob
|
history
diff --git
a/attrib/utils.c
b/attrib/utils.c
index
f9813d1
..
c8c8651
100644
(file)
--- a/
attrib/utils.c
+++ b/
attrib/utils.c
@@
-50,11
+50,6
@@
GIOChannel *gatt_connect(const gchar *src, const gchar *dst,
GError *err = NULL;
BtIOSecLevel sec;
- /* Remote device */
- if (dst == NULL) {
- g_printerr("Remote Bluetooth address required\n");
- return NULL;
- }
str2ba(dst, &dba);
/* Local adapter */