|
From: Peter K. <pk...@us...> - 2001-10-04 13:22:16
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bt_if.c 1.35 1.36=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
No need to shutdown the stack in init_stack() if it fails,
since it is already shutdown.
The diff of the modified file(s):
--- bt_if.c 2001/10/03 17:34:17 1.35
+++ bt_if.c 2001/10/04 13:22:15 1.36
@@ -72,15 +72,12 @@
=20
int init_stack(int bt_cfd)
{
- int ret =3D 0;
-
syslog(LOG_INFO, "Init stack");
=20
#ifndef BT_USERSTACK
- if ((ret =3D ioctl(bt_cfd, BTINITSTACK)) < 0)
+ if (ioctl(bt_cfd, BTINITSTACK) < 0)
{
- shutdown_stack(bt_cfd);
- return ret;
+ return -1;
}
#else
init_userstack();
@@ -96,7 +93,7 @@
#endif
}
=20=20=20
- return ret;
+ return 0;
}
=20
/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D */
@@ -727,7 +724,7 @@
int result;
unsigned long spd =3D speedstrtoli(speedstr);
=20
- syslog(LOG_INFO, __FUNCTION__ ": %d baud", spd);
+ syslog(LOG_INFO, __FUNCTION__ ": %lu baud", spd);
#ifdef BT_USERSTACK
tcflush(phys_fd, TCIOFLUSH);
result =3D hci_set_baudrate(spd);
|