changed elemsof() macro to countof()

This commit is contained in:
Andreas Steffen
2009-04-17 09:28:45 +00:00
parent 247e665a44
commit 2775c9aac8
11 changed files with 13 additions and 15 deletions
+1 -1
View File
@@ -526,7 +526,7 @@ init_demux(void)
*/
const struct state_microcode *t;
for (t = &state_microcode_table[elemsof(state_microcode_table) - 1];;)
for (t = &state_microcode_table[countof(state_microcode_table) - 1];;)
{
passert(STATE_IKE_FLOOR <= t->state && t->state < STATE_IKE_ROOF);
ike_microcode_index[t->state - STATE_IKE_FLOOR] = t;