diff options
author | Kumar Gala <kumar.gala@linaro.org> | 2017-01-27 14:35:00 -0600 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2017-01-28 08:43:41 +0200 |
commit | edcb6ceb12701b478199f7b9db10f33b5a6a3dbf (patch) | |
tree | 8e869c57641ce82d78ae781a78f0367061562a80 | |
parent | eb07178236a40d51949f4e7e26ca7d9e34976ec9 (diff) |
Bluetooth: hci_raw: Make bt_buf_get_rx args consistent
The hci_raw version of bt_buf_get_rx was expecting an int for timeout.
Let us int32_t instead so we match both the hci_core version and the
type that net_buf_alloc expects.
This addresses a possible build issue if/when int32_t differs from our
default (ie, newlib).
Change-Id: I69374c48da8f2b96fa2bd418ff505fbaacda11f0
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
-rw-r--r-- | subsys/bluetooth/host/hci_raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsys/bluetooth/host/hci_raw.c b/subsys/bluetooth/host/hci_raw.c index db35f80a5..20b48b706 100644 --- a/subsys/bluetooth/host/hci_raw.c +++ b/subsys/bluetooth/host/hci_raw.c @@ -45,7 +45,7 @@ int bt_hci_driver_register(struct bt_hci_driver *drv) return 0; } -struct net_buf *bt_buf_get_rx(int timeout) +struct net_buf *bt_buf_get_rx(int32_t timeout) { return net_buf_alloc(&hci_rx_pool, timeout); } |