example/panu_demo: fix unused argument warnings

This commit is contained in:
Matthias Ringwald 2017-01-07 22:11:48 +01:00
parent c9bf9c270c
commit c83b02157f

View File

@ -269,6 +269,9 @@ static int tap_alloc(char *dev, bd_addr_t bd_addr)
/* LISTING_START(processTapData): Process incoming network packets */
static void process_tap_dev_data(btstack_data_source_t *ds, btstack_data_source_callback_type_t callback_type)
{
UNUSED(ds);
UNUSED(callback_type);
ssize_t len;
len = read(ds->fd, network_buffer, sizeof(network_buffer));
if (len <= 0){
@ -317,6 +320,10 @@ static char * get_string_from_data_element(uint8_t * element){
*/
static void handle_sdp_client_query_result(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size) {
UNUSED(packet_type);
UNUSED(channel);
UNUSED(size);
des_iterator_t des_list_it;
des_iterator_t prot_it;
char *str;
@ -424,6 +431,8 @@ static void handle_sdp_client_query_result(uint8_t packet_type, uint16_t channel
static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)
{
/* LISTING_PAUSE */
UNUSED(channel);
int rc;
uint8_t event;
bd_addr_t event_addr;
@ -561,6 +570,9 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
int btstack_main(int argc, const char * argv[]);
int btstack_main(int argc, const char * argv[]){
UNUSED(argc);
UNUSED(argv);
printf("Client HCI init done\n");
panu_setup();