allow void *

This commit is contained in:
matthias.ringwald 2009-05-26 22:48:24 +00:00
parent b1d8f7aa2d
commit 0258271367
2 changed files with 3 additions and 3 deletions

View File

@ -73,10 +73,10 @@ void bt_flip_addr(bd_addr_t dest, bd_addr_t src){
dest[5] = src[0];
}
void hexdump(uint8_t *data, int size){
void hexdump(void *data, int size){
int i;
for (i=0; i<size;i++){
printf("%02X ", data[i]);
printf("%02X ", ((uint8_t *)data)[i]);
}
printf("\n");
}

View File

@ -163,7 +163,7 @@ int hci_power_control(HCI_POWER_MODE mode);
uint32_t hci_run();
//
void hexdump(uint8_t *data, int size);
void hexdump(void *data, int size);
// create and send hci command packet based on a template and a list of parameters
int hci_send_cmd(hci_cmd_t *cmd, ...);