--- lib/hci.c | 4 ++-- 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; -- 1.7.8.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html