(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:
parent
6f1df90b69
commit
47192c9079
5 changed files with 5 additions and 7 deletions
|
@ -97,7 +97,7 @@ make_new_list(int tlev, int type)
|
|||
|
||||
lookup_list_cnt = 0;
|
||||
if (type == EF_PLANE) {
|
||||
for (pp = plchr, count = 0; count < pln_maxno; count++, pp++) {
|
||||
for (pp = plchr; pp->pl_name; pp++) {
|
||||
if (pp->pl_tech > tlev)
|
||||
continue;
|
||||
if (pp->pl_name == 0 || pp->pl_name[0] == '\0')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue