|
From: Peter K. <pk...@us...> - 2002-02-26 18:09:00
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bt_if.c 1.42 1.43=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Removed a couple of extraneous & (address dereferences) which
amongst others caused bt_set_event_filter() to not function
properly (actually it did not work at all).
The diff of the modified file(s):
--- bt_if.c 26 Feb 2002 17:43:32 -0000 1.42
+++ bt_if.c 26 Feb 2002 18:08:59 -0000 1.43
@@ -587,7 +587,7 @@
msg[7] =3D (unsigned char)(type & 0xff);
=20
#ifndef BT_USERSTACK=20
- if ((ret_val =3D ioctl(bt_cfd, BTGETINFO, &msg)) < 0)
+ if ((ret_val =3D ioctl(bt_cfd, BTGETINFO, msg)) < 0)
{
printf("Error : [%s (%d)]\n", error_msg(ret_val), MSG_GET_CODE(-ret_va=
l));
}
@@ -854,7 +854,7 @@
tmp[0] =3D interval;
tmp[1] =3D wind;
=20
- if (ioctl(bt_cfd, HCIWRITEPAGESCANACTIVITY, &tmp) < 0)
+ if (ioctl(bt_cfd, HCIWRITEPAGESCANACTIVITY, tmp) < 0)
{=20
perror(__FUNCTION__);
exit(1);
@@ -871,10 +871,10 @@
filter[0], filter[1], filter[2]);
=20
#ifdef BT_USERSTACK
- result =3D hci_set_event_filter((u8*)&filter);
+ result =3D hci_set_event_filter((u8*)filter);
#else
=20
- if ((result =3D ioctl(bt_cfd, HCISET_EVENT_FILTER, &filter)) < 0)
+ if ((result =3D ioctl(bt_cfd, HCISET_EVENT_FILTER, filter)) < 0)
{=20
perror(__FUNCTION__);
exit(1);
|