aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2012-02-10 18:39:51 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-03-01 17:49:51 -0800
commita1d571cd3f8fb1ad676756d5338d35b924f41926 (patch)
tree8bbf5559784517429a16f87d229b7b8033d4f4ca
parentaa97951d6f61fdab576025dd100c625f2cd79b3a (diff)
downloadbluez-hcidump-a1d571cd3f8fb1ad676756d5338d35b924f41926.tar.gz
bluez-hcidump-a1d571cd3f8fb1ad676756d5338d35b924f41926.tar.xz
bluez-hcidump-a1d571cd3f8fb1ad676756d5338d35b924f41926.zip
lib: Fix using old-style initializers
-rw-r--r--lib/hci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hci.c b/lib/hci.c
index b122313..269c021 100644
--- a/lib/hci.c
+++ b/lib/hci.c
@@ -860,7 +860,7 @@ done:
static int __other_bdaddr(int dd, int dev_id, long arg)
{
- struct hci_dev_info di = { dev_id: dev_id };
+ struct hci_dev_info di = { .dev_id = dev_id };
if (ioctl(dd, HCIGETDEVINFO, (void *) &di))
return 0;
@@ -873,7 +873,7 @@ static int __other_bdaddr(int dd, int dev_id, long arg)
static int __same_bdaddr(int dd, int dev_id, long arg)
{
- struct hci_dev_info di = { dev_id: dev_id };
+ struct hci_dev_info di = { .dev_id = dev_id };
if (ioctl(dd, HCIGETDEVINFO, (void *) &di))
return 0;