|
From: Mattias A. <mat...@us...> - 2001-06-13 12:26:05
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bt_if.c 1.18 1.19=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* added return value in init_stack()
The diff of the modified file(s):
--- bt_if.c 2001/06/11 10:53:32 1.18
+++ bt_if.c 2001/06/13 12:26:05 1.19
@@ -70,19 +70,21 @@
/* Functions common for kernel and usermode stack */
/* =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=3D */
=20
-void init_stack(int bt_cfd, int spd)
+int init_stack(int bt_cfd, int spd)
{
+ int ret;
syslog(LOG_INFO, "Init stack");
=20
#ifdef BT_USERSTACK
init_userstack();
#else /* Kernel mode stack */
=20=20=20
- if (ioctl(bt_cfd, BTINITSTACK) < 0)
+ if((ret =3D ioctl(bt_cfd, BTINITSTACK)) < 0)
{
- perror(__FUNCTION__);
- exit(1);
+ shutdown_stack(bt_cfd);
+ return ret;
}
+=20=20
#endif
=20
/* fixme<3> -- read these parameters from config file ? */
@@ -91,6 +93,8 @@
#ifndef __CRIS__
set_local_hostname(bt_cfd, "AXIS");
#endif
+=20=20
+ return ret;
}
=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 */
|