git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ipc: add definitions of USHORT_MAX and others
[safe/jmp/linux-2.6]
/
ipc
/
util.c
diff --git
a/ipc/util.c
b/ipc/util.c
index
c4f1d33
..
4c465cb
100644
(file)
--- a/
ipc/util.c
+++ b/
ipc/util.c
@@
-133,8
+133,8
@@
void ipc_init_ids(struct ipc_ids *ids)
ids->seq = 0;
{
int seq_limit = INT_MAX/SEQ_MULTIPLIER;
- if
(seq_limit > USH
RT_MAX)
- ids->seq_max = USHRT_MAX;
+ if
(seq_limit > USHO
RT_MAX)
+ ids->seq_max = USH
O
RT_MAX;
else
ids->seq_max = seq_limit;
}