diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2002-11-22 21:54:27 +0000 |
---|---|---|
committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-11-22 21:54:27 +0000 |
commit | a1e51b622a5d7dad098ed0b856c37c18da495692 (patch) | |
tree | dd7023c3ad72427c617a9ab937f2717203ae6deb /src/hci.c | |
parent | e101b08ba577ff8f6a2a789eb67d128977859fd3 (diff) |
Fix hci_for_each_dev() to work on big endian machines.
Diffstat (limited to 'src/hci.c')
-rw-r--r-- | src/hci.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -369,7 +369,7 @@ int hci_for_each_dev(int flag, int(*func)(int s, int dev_id, long arg), long arg if (s < 0) return -1; - dl = malloc(HCI_MAX_DEV * sizeof(struct hci_dev_req) + sizeof(uint16_t)); + dl = malloc(HCI_MAX_DEV * sizeof(*dr) + sizeof(*dl)); if (!dl) { close(s); return -1; |