fix warnings

This commit is contained in:
Matthias Ringwald 2016-04-18 14:49:05 +02:00
parent 9cd88577a1
commit db00faf25b
2 changed files with 3 additions and 3 deletions

View File

@ -254,13 +254,13 @@ static void h4_process(btstack_data_source_t *ds, btstack_data_source_callback_t
packet_handler(HCI_EVENT_PACKET, &event[0], sizeof(event));
}
if (h4_state != H4_PACKET_RECEIVED) return 0;
if (h4_state != H4_PACKET_RECEIVED) return;
packet_handler(hci_packet[0], &hci_packet[1], read_pos-1);
h4_init_sm();
return 0;
return;
}
static int h4_send_packet(uint8_t packet_type, uint8_t *packet, int size){

View File

@ -227,7 +227,7 @@ void hsp_ag_create_sdp_record(uint8_t * service, uint32_t service_record_handle,
}
}
static int hsp_ag_send_str_over_rfcomm(uint16_t cid, char * command){
static int hsp_ag_send_str_over_rfcomm(const uint16_t cid, char * command){
int err = rfcomm_send(cid, (uint8_t*) command, strlen(command));
if (err){
log_error("rfcomm_send_internal -> error 0X%02x", err);