|
From: Peter K. <pk...@us...> - 2001-10-04 15:10:40
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bt_misc.c 1.19 1.20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Fail again if a divisor is specified, but TIOCGSERIAL does not work.
The diff of the modified file(s):
--- bt_misc.c 2001/10/04 15:03:19 1.19
+++ bt_misc.c 2001/10/04 15:10:40 1.20
@@ -350,7 +350,11 @@
if (divisorp)
{
divisor =3D atol(divisorp+1);
+ if (!divisor) /* Just to be safe */
+ {
+ divisor =3D 1;
}
+ }
=20
if (tcgetattr(fd, &t) < 0)
{=20=20
@@ -375,6 +379,11 @@
serial.flags &=3D ~ASYNC_SPD_CUST;
}
}
+ else if (divisor)
+ {
+ perror("Error getting serial_struct with TIOCGSERIAL");
+ exit(1);
+ }
=20=20=20=20=20
cfmakeraw(&t);
=20=09
@@ -419,7 +428,7 @@
if (divisorp)
{
divisor =3D atol(divisorp+1);
- if (divisor =3D=3D 0) /* Just to be safe */
+ if (!divisor) /* Just to be safe */
{
divisor =3D 1;
}
|