Pacify new GCC4 warnings.
Submitted by: kan MFC after: 1 week
This commit is contained in:
parent
fc1d67300c
commit
6f1c555bd8
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user