(lnd_maxno): Variable's value is well-known constant N_MAXLAND + 1.

Useless, remove.  Users changed to check lchr's sentinel, because
that's clearer than comparing the index to N_MAXLAND or sizeof(lchr) /
sizeof(*lchr).

(lchr): Change sentinel's l_name to NULL.
This commit is contained in:
Markus Armbruster 2005-11-06 20:59:38 +00:00
parent 190cbaadf2
commit 04c247f2da
4 changed files with 3 additions and 8 deletions

View file

@ -207,11 +207,9 @@ struct lchrstr lchr[] = {
*/
{{0},
"",
NULL,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0,
}
};
int lnd_maxno = (sizeof(lchr) / sizeof(struct lchrstr)) - 1;