summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-11-03 14:46:17 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-11-03 14:46:17 +0000
commit473446233d1a259f526777782aada53b993d73cc (patch)
tree5d3ae317826acd8864cb93b2f537e1655a7df232
parenta204981f9c2cd042b1b314385cc2c218dcf6f7b5 (diff)
Remove usage of BTADDR_LEN
-rw-r--r--hcid/dbus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hcid/dbus.c b/hcid/dbus.c
index 0923f552..aef9ecc0 100644
--- a/hcid/dbus.c
+++ b/hcid/dbus.c
@@ -48,7 +48,6 @@ static DBusConnection *connection;
static int default_dev = -1;
#define TIMEOUT (30 * 1000) /* 30 seconds */
-#define BTADDR_LEN 18
#define MAX_PATH_LENGTH 64
#define MAX_CONN_NUMBER 10
@@ -1548,7 +1547,7 @@ static DBusMessage* handle_display_conn_req(DBusMessage *msg, void *data)
DBusMessageIter iter;
DBusMessageIter array_iter;
DBusMessageIter struct_iter;
- char addr[BTADDR_LEN];
+ char addr[18];
const char array_sig[] = HCI_CONN_INFO_STRUCT_SIGNATURE;
const char *paddr = addr;
struct hci_dbus_data *dbus_data = data;
@@ -1816,7 +1815,7 @@ static DBusMessage* handle_device_list_req(DBusMessage *msg, void *data)
for (i = 0; i < dl->dev_num; i++, dr++) {
char apath[MAX_PATH_LENGTH];
- char aaddr[BTADDR_LEN];
+ char aaddr[18];
char *paddr = aaddr;
char *ppath = apath;
char *ptype;