summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/glib-helper.c2
-rw-r--r--hcid/device.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/glib-helper.c b/common/glib-helper.c
index 515254ec..ed203eb4 100644
--- a/common/glib-helper.c
+++ b/common/glib-helper.c
@@ -328,7 +328,7 @@ void bt_cancel_discovery(const bdaddr_t *src, const bdaddr_t *dst)
/* Ongoing SDP Discovery */
if (match) {
ctxt = match->data;
- if (ctxt->session)
+ if (ctxt->session)
close(ctxt->session->sock);
}
}
diff --git a/hcid/device.c b/hcid/device.c
index db21096d..f0e57e91 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -1056,7 +1056,7 @@ static DBusMessage *cancel_discover(DBusConnection *conn,
{
struct device *device = user_data;
struct adapter *adapter = device->adapter;
- bdaddr_t src,dst;
+ bdaddr_t src, dst;
str2ba(adapter->address, &src);
str2ba(device->address, &dst);