From f7a79ac1fc2bddf73713832ea7f63259ce44b9b3 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Fri, 10 Feb 2012 18:39:51 -0300 Subject: [PATCH] lib: Fix using old-style initializers --- lib/hci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hci.c b/lib/hci.c index b1223135e..269c02127 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; -- 2.47.3