From 8363021c650df571a931fa0dc806fa4bd8927605 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Fri, 6 Dec 2013 15:20:34 +0000 Subject: [PATCH] more pre-c99 fixes --- src/hci_transport_h4_dma.c | 4 +++- src/hci_transport_h4_ehcill_dma.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/hci_transport_h4_dma.c b/src/hci_transport_h4_dma.c index da517778d..a0dc02c66 100644 --- a/src/hci_transport_h4_dma.c +++ b/src/hci_transport_h4_dma.c @@ -102,12 +102,13 @@ static uint16_t tx_len; static void (*packet_handler)(uint8_t packet_type, uint8_t *packet, uint16_t size) = dummy_handler; static data_source_t hci_transport_h4_dma_ds = { - /* .item = */ NULL, + /* .item = */ { NULL, NULL }, /* .fd = */ 0, /* .process = */ h4_process }; static hci_transport_h4_t hci_transport_h4_dma = { + { /* .transport.open = */ h4_open, /* .transport.close = */ h4_close, /* .transport.send_packet = */ h4_send_packet, @@ -115,6 +116,7 @@ static hci_transport_h4_t hci_transport_h4_dma = { /* .transport.get_transport_name = */ h4_get_transport_name, /* .transport.set_baudrate = */ h4_set_baudrate, /* .transport.can_send_packet_now = */ h4_can_send_packet_now, + }, /* .ds = */ &hci_transport_h4_dma_ds }; diff --git a/src/hci_transport_h4_ehcill_dma.c b/src/hci_transport_h4_ehcill_dma.c index 02073bb8e..f208f40c3 100644 --- a/src/hci_transport_h4_ehcill_dma.c +++ b/src/hci_transport_h4_ehcill_dma.c @@ -134,13 +134,14 @@ static uint8_t tx_packet_type; // data source used in run_loop static data_source_t hci_transport_h4_dma_ds = { - /* .item = */ NULL, + /* .item = */ { NULL, NULL }, /* .fd = */ 0, /* .process = */ h4_process }; // hci_transport for use by hci static const hci_transport_h4_t hci_transport_h4_ehcill_dma = { + { /* .transport.open = */ h4_open, /* .transport.close = */ h4_close, /* .transport.send_packet = */ ehcill_send_packet, @@ -148,6 +149,7 @@ static const hci_transport_h4_t hci_transport_h4_ehcill_dma = { /* .transport.get_transport_name = */ h4_get_transport_name, /* .transport.set_baudrate = */ h4_set_baudrate, /* .transport.can_send_packet_now = */ h4_can_send_packet_now, + }, /* .ds = */ &hci_transport_h4_dma_ds };