summaryrefslogtreecommitdiffstats
path: root/hcid/security.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-02-22 13:22:36 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-02-22 13:22:36 +0000
commit8100e0c660e200a9d789dcd054f25a20778379cd (patch)
tree0fed44d7d3ad0103d8277727bf6b940184bb2b37 /hcid/security.c
parentf3be9c15792728861db02c8b0a3692903a30552b (diff)
Fix 64-bit size_t problem with HCI events
Diffstat (limited to 'hcid/security.c')
-rw-r--r--hcid/security.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hcid/security.c b/hcid/security.c
index 189bc7d8..4f0d942e 100644
--- a/hcid/security.c
+++ b/hcid/security.c
@@ -365,9 +365,10 @@ reject:
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;