Skip to contentSkip to conversation

Add bt_host_hci prototype

PATCH Superseded Jan Kiszka 1 participant 2 messages Dec 18, 2008 – Jan 14, 2009

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 Add bt_host_hci prototype

Silence compiler warning by providing a prototype in the CONFIG_BLUEZ case (hw/bt.h provides it otherwise).

---

 bt-host.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
bt-host.c +2 -0
index 3c7b270..6ab945d 100644
@@ -32,6 +32,8 @@
 #  include <bluetooth/bluetooth.h>
 #  include <bluetooth/hci.h>
 #  include <bluetooth/hci_lib.h>
+/* Silence compiler warning */
+struct HCIInfo *bt_host_hci(const char *id);
 # else
 #  include "hw/bt.h"
 #  define HCI_MAX_FRAME_SIZE	1028
author
#1 lore raw
Quoted 17 lines · Jan Kiszka

Silence compiler warning by providing a prototype in the CONFIG_BLUEZ case (hw/bt.h provides it otherwise).

---

 bt-host.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
bt-host.c +0 -0
index 3c7b270..6ab945d 100644

bt-host.c line 39

Quoted 8 lines
bt-host.c +2 -0
@@ -32,6 +32,8 @@
 #  include <bluetooth/bluetooth.h>
 #  include <bluetooth/hci.h>
 #  include <bluetooth/hci_lib.h>
+/* Silence compiler warning */
+struct HCIInfo *bt_host_hci(const char *id);
 # else
 #  include "hw/bt.h"
 #  define HCI_MAX_FRAME_SIZE	1028

This warning still bugs us, please apply this or any better fix.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 26
Corporate Competence Center Embedded Linux