aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOliver Hartkopp <oliver@hartkopp.net>2007-12-27 19:50:06 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:54:12 -0500
commit4195e31780a20e09c6e793c2d96390e05309e226 (patch)
treeeb76871e302e5e86125ea94bee4dcef73af469cf /include
parentccb29637991fa6b8321a80c2320a71e379aea962 (diff)
[CAN]: Fix plain integer definitions in userspace header.
This patch fixes the use of plain integers instead of __u32 in a struct that is visible from kernel space and user space. Thanks to Sam Ravnborg for pointing out the wrong plain int usage. Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/can/bcm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/can/bcm.h b/include/linux/can/bcm.h
index 7ade33a0ff03..7f293273c444 100644
--- a/include/linux/can/bcm.h
+++ b/include/linux/can/bcm.h
@@ -26,12 +26,12 @@
26 * @frames: array of CAN frames. 26 * @frames: array of CAN frames.
27 */ 27 */
28struct bcm_msg_head { 28struct bcm_msg_head {
29 int opcode; 29 __u32 opcode;
30 int flags; 30 __u32 flags;
31 int count; 31 __u32 count;
32 struct timeval ival1, ival2; 32 struct timeval ival1, ival2;
33 canid_t can_id; 33 canid_t can_id;
34 int nframes; 34 __u32 nframes;
35 struct can_frame frames[0]; 35 struct can_frame frames[0];
36}; 36};
37 37