diff --git a/usr.sbin/bluetooth/bthidd/parser.y b/usr.sbin/bluetooth/bthidd/parser.y index 8d95f4e5a344..8f704a63f907 100644 --- a/usr.sbin/bluetooth/bthidd/parser.y +++ b/usr.sbin/bluetooth/bthidd/parser.y @@ -189,7 +189,7 @@ hid_descriptor: T_HID_DESCRIPTOR if (hid_device->desc != NULL) hid_dispose_report_desc(hid_device->desc); - hid_device->desc = hid_use_report_desc(buffer, hid_descriptor_size); + hid_device->desc = hid_use_report_desc((unsigned char *) buffer, hid_descriptor_size); if (hid_device->desc == NULL) { SYSLOG(LOGCRIT, "Could not use HID descriptor" EOL); YYABORT; diff --git a/usr.sbin/bluetooth/hccontrol/link_control.c b/usr.sbin/bluetooth/hccontrol/link_control.c index 6123e4479875..ea880cd091e3 100644 --- a/usr.sbin/bluetooth/hccontrol/link_control.c +++ b/usr.sbin/bluetooth/hccontrol/link_control.c @@ -42,7 +42,7 @@ static int hci_inquiry(int s, int argc, char **argv) { int n0, n1, n2, timo; - uint8_t b[512]; + char b[512]; ng_hci_inquiry_cp cp; ng_hci_event_pkt_t *e = (ng_hci_event_pkt_t *) b; diff --git a/usr.sbin/bluetooth/hcsecd/hcsecd.c b/usr.sbin/bluetooth/hcsecd/hcsecd.c index d83e04b4486e..de7a77581b13 100644 --- a/usr.sbin/bluetooth/hcsecd/hcsecd.c +++ b/usr.sbin/bluetooth/hcsecd/hcsecd.c @@ -282,8 +282,8 @@ send_pin_code_reply(int sock, struct sockaddr_hci *addr, cp = (ng_hci_pin_code_rep_cp *)(cmd + 1); memcpy(&cp->bdaddr, bdaddr, sizeof(cp->bdaddr)); - strncpy(cp->pin, pin, sizeof(cp->pin)); - cp->pin_size = strlen(cp->pin); + strncpy((char *) cp->pin, pin, sizeof(cp->pin)); + cp->pin_size = strlen((char const *) cp->pin); syslog(LOG_DEBUG, "Sending PIN_Code_Reply to '%s' " \ "for remote bdaddr %s",