summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth/btpand/bnep.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bluetooth/btpand/bnep.c')
-rw-r--r--usr.sbin/bluetooth/btpand/bnep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bluetooth/btpand/bnep.c b/usr.sbin/bluetooth/btpand/bnep.c
index 200a723..82116a6 100644
--- a/usr.sbin/bluetooth/btpand/bnep.c
+++ b/usr.sbin/bluetooth/btpand/bnep.c
@@ -573,7 +573,7 @@ bnep_recv_filter_multi_addr_rsp(channel_t *chan, uint8_t *ptr, size_t size)
}
void
-bnep_send_control(channel_t *chan, uint8_t type, ...)
+bnep_send_control(channel_t *chan, unsigned type, ...)
{
packet_t *pkt;
uint8_t *p;
@@ -589,7 +589,7 @@ bnep_send_control(channel_t *chan, uint8_t type, ...)
va_start(ap, type);
*p++ = BNEP_CONTROL;
- *p++ = type;
+ *p++ = (uint8_t)type;
switch(type) {
case BNEP_CONTROL_COMMAND_NOT_UNDERSTOOD:
OpenPOWER on IntegriCloud