mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-11 09:40:24 +00:00
l2cap: fix -Wvarargs warnings from clang 9.0
This commit is contained in:
parent
034d8e7065
commit
63854e74af
@ -985,7 +985,7 @@ static int l2cap_security_level_0_allowed_for_PSM(uint16_t psm){
|
|||||||
return (psm == BLUETOOTH_PROTOCOL_SDP) && (!require_security_level2_for_outgoing_sdp);
|
return (psm == BLUETOOTH_PROTOCOL_SDP) && (!require_security_level2_for_outgoing_sdp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int l2cap_send_signaling_packet(hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, ...){
|
static int l2cap_send_signaling_packet(hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, int identifier, ...){
|
||||||
if (!hci_can_send_acl_packet_now(handle)){
|
if (!hci_can_send_acl_packet_now(handle)){
|
||||||
log_info("l2cap_send_signaling_packet, cannot send");
|
log_info("l2cap_send_signaling_packet, cannot send");
|
||||||
return BTSTACK_ACL_BUFFERS_FULL;
|
return BTSTACK_ACL_BUFFERS_FULL;
|
||||||
@ -1095,7 +1095,7 @@ static inline void channelStateVarClearFlag(l2cap_channel_t *channel, L2CAP_CHAN
|
|||||||
|
|
||||||
|
|
||||||
#ifdef ENABLE_BLE
|
#ifdef ENABLE_BLE
|
||||||
static int l2cap_send_le_signaling_packet(hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, ...){
|
static int l2cap_send_le_signaling_packet(hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, int identifier, ...){
|
||||||
|
|
||||||
if (!hci_can_send_acl_packet_now(handle)){
|
if (!hci_can_send_acl_packet_now(handle)){
|
||||||
log_info("l2cap_send_le_signaling_packet, cannot send");
|
log_info("l2cap_send_le_signaling_packet, cannot send");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user