(pln_maxno): Variable's value is well-known constant N_MAXPLANE + 1.

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

(plchr): Change sentinel's pl_name to NULL.
This commit is contained in:
Markus Armbruster 2005-11-06 21:12:24 +00:00
parent 6f1df90b69
commit 47192c9079
5 changed files with 5 additions and 7 deletions

View file

@ -301,9 +301,8 @@ struct plchrstr plchr[] = {
0,
P_N | P_M},
{
"", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
NULL,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0,
0}
};
int pln_maxno = (sizeof(plchr) / sizeof(struct plchrstr)) - 1;