(PRI_SMAINT, PRI_PMAINT, PRI_LMAINT, PRI_SBUILD, PRI_PBUILD,
PRI_LBUILD): Turn macros into enumeration constants. Value SCT_MAXDEF+1 was previously unused; use it. (PRI_MAX): New; replacing the horrible SCT_MAXDEF+8. (show_sect_build): Simply examine all sector types, don't skip the first five. The code ignores them just fine. (show_sect_build, show_sect_stats, show_sect_capab): Don't try to show sector types beyond SCT_MAXDEF. The table has some empty extra slots, for whatever reasons; no use examining them.
This commit is contained in:
parent
cff2deba4a
commit
0ebb14c8be
6 changed files with 30 additions and 27 deletions
|
@ -138,8 +138,8 @@ main(int argc, char *argv[])
|
|||
nat.nat_money = 123456789;
|
||||
nat.nat_cnum = 0;
|
||||
nat.nat_flags |= NF_FLASH;
|
||||
for (x = 0; x < SCT_MAXDEF + 8; x++)
|
||||
nat.nat_priorities[x] = -1;
|
||||
for (i = 0; i <= PRI_MAX; i++)
|
||||
nat.nat_priorities[i] = -1;
|
||||
putnat((&nat));
|
||||
printf("All praise to %s!\n", nat.nat_cnam);
|
||||
memset(&nat, 0, sizeof(nat));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue