Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e7ee0535
Commit
e7ee0535
authored
Jul 10, 2003
by
Jean Tourrilhes
Committed by
Linus Torvalds
Jul 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IrDA] struct check
<Suggested by Russell King> o [FEATURE] Add struct size check for buggy compilers
parent
e8b7f906
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
net/irda/irlap.c
net/irda/irlap.c
+7
-0
No files found.
net/irda/irlap.c
View file @
e7ee0535
...
@@ -79,6 +79,13 @@ int irlap_proc_read(char *, char **, off_t, int);
...
@@ -79,6 +79,13 @@ int irlap_proc_read(char *, char **, off_t, int);
int
__init
irlap_init
(
void
)
int
__init
irlap_init
(
void
)
{
{
/* Check if the compiler did its job properly.
* May happen on some ARM configuration, check with Russell King. */
ASSERT
(
sizeof
(
struct
xid_frame
)
==
14
,
;);
ASSERT
(
sizeof
(
struct
test_frame
)
==
10
,
;);
ASSERT
(
sizeof
(
struct
ua_frame
)
==
10
,
;);
ASSERT
(
sizeof
(
struct
snrm_frame
)
==
11
,
;);
/* Allocate master array */
/* Allocate master array */
irlap
=
hashbin_new
(
HB_LOCK
);
irlap
=
hashbin_new
(
HB_LOCK
);
if
(
irlap
==
NULL
)
{
if
(
irlap
==
NULL
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment