hci: use bool for hci_reserve_packet_buffer

This commit is contained in:
Matthias Ringwald 2021-09-06 14:56:01 +02:00
parent 02c7fc01f5
commit cafc12e80b
2 changed files with 5 additions and 5 deletions

View File

@ -694,13 +694,13 @@ bool hci_is_packet_buffer_reserved(void){
}
// reserves outgoing packet buffer. @returns 1 if successful
int hci_reserve_packet_buffer(void){
bool hci_reserve_packet_buffer(void){
if (hci_stack->hci_packet_buffer_reserved) {
log_error("hci_reserve_packet_buffer called but buffer already reserved");
return 0;
return false;
}
hci_stack->hci_packet_buffer_reserved = true;
return 1;
return true;
}
void hci_release_packet_buffer(void){

View File

@ -1223,9 +1223,9 @@ int hci_send_sco_packet_buffer(int size);
/**
* Reserves outgoing packet buffer.
* @return 1 on success
* @return true on success
*/
int hci_reserve_packet_buffer(void);
bool hci_reserve_packet_buffer(void);
/**
* Get pointer for outgoing packet buffer