Pacify new GCC4 warnings.

Submitted by:	kan
MFC after:	1 week
This commit is contained in:
Maksim Yevmenkin 2006-09-21 17:16:37 +00:00
parent 827f0e85a6
commit 6e9bee6438
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162529
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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",