Index: hcid/main.c =================================================================== RCS file: /cvsroot/bluez/utils/hcid/main.c,v retrieving revision 1.11 diff -u -r1.11 main.c --- hcid/main.c 17 Feb 2004 18:04:03 -0000 1.11 +++ hcid/main.c 22 Feb 2004 02:09:29 -0000 @@ -397,10 +397,11 @@ gboolean io_stack_event(GIOChannel *chan, GIOCondition cond, gpointer data) { - char buf[HCI_MAX_FRAME_SIZE], *ptr; + unsigned char buf[HCI_MAX_FRAME_SIZE], *ptr; evt_stack_internal *si; hci_event_hdr *eh; - int len, type; + int type; + size_t len; GIOError err; ptr = buf; Index: hcid/security.c =================================================================== RCS file: /cvsroot/bluez/utils/hcid/security.c,v retrieving revision 1.9 diff -u -r1.9 security.c --- hcid/security.c 17 Feb 2004 18:04:03 -0000 1.9 +++ hcid/security.c 22 Feb 2004 02:09:29 -0000 @@ -365,9 +365,10 @@ gboolean io_security_event(GIOChannel *chan, GIOCondition cond, gpointer data) { - char buf[HCI_MAX_EVENT_SIZE], *ptr = buf; + unsigned char buf[HCI_MAX_EVENT_SIZE], *ptr = buf; struct hci_dev_info *di = (void *) data; - int len, type, dev; + int type, dev; + size_t len; hci_event_hdr *eh; GIOError err;