|
From: Peter K. <pk...@us...> - 2001-04-10 10:50:41
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
rfcomm.c 1.96 1.97=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added the packed attribute to the bits structure in the
long_length union (thanks to Claus Tondering).
The diff of the modified file(s):
--- rfcomm.c 2001/03/30 12:03:25 1.96
+++ rfcomm.c 2001/04/10 10:50:39 1.97
@@ -185,11 +185,10 @@
} __attribute__ ((packed)) short_length;
=20
typedef union long_length{
-// David LIBAULT : THIS WAS NOT WORKING AT UPF4.5...
struct bits {
u8 ea:1;
unsigned short len:15;
- } bits ;
+ } __attribute__ ((packed)) bits ;
u16 val ;
} __attribute__ ((packed)) long_length;
=20
@@ -388,7 +387,7 @@
struct bits {
unsigned short len:15;
u8 ea:1;
- } bits;
+ } __attribute__ ((packed)) bits;
u16 val;
} __attribute__ ((packed)) long_length;
=20
|