ipc: add definitions of USHORT_MAX and others
[linux-2.6.git] / ipc / util.c
index c4f1d33b89e46722b42cfce8730d901857fb47e8..4c465cb223607dcd134673e1ebb620a949188cce 100644 (file)
@@ -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 > USHRT_MAX)
-                       ids->seq_max = USHRT_MAX;
+               if (seq_limit > USHORT_MAX)
+                       ids->seq_max = USHORT_MAX;
                 else
                        ids->seq_max = seq_limit;
        }