|
From: Mattias A. <mat...@us...> - 2001-03-21 18:47:19
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
btdisc.c 1.1 1.2=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
use return code from bt_disconnect as exit code
The diff of the modified file(s):
--- btdisc.c 2001/03/02 10:59:57 1.1
+++ btdisc.c 2001/03/21 18:47:18 1.2
@@ -71,6 +71,7 @@
{
int con_id, bt_cfd, dlci=3D-1, line, opt;
char *btdev =3D "/dev/ttyBT0"; /* default */=20=20
+ int ret_val;
=20
#ifdef __CRIS__
/* Print header if called via http */
@@ -128,8 +129,8 @@
=20
con_id =3D CREATE_RFCOMM_ID(line, dlci);
=20
- bt_disconnect(bt_cfd, con_id);
+ ret_val =3D bt_disconnect(bt_cfd, con_id);
=20=20
close(bt_cfd);
- exit(0);
+ exit(ret_val);
}
|