(prd_maxno): Variable's value is well-known constant P_MDUST + 2.

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

(pchr): Change sentinel's p_name and p_sname to NULL.  Sentinel
checks changed.
This commit is contained in:
Markus Armbruster 2005-11-06 18:06:38 +00:00
parent 23f134aa75
commit 19953e6c22
4 changed files with 3 additions and 8 deletions

View file

@ -86,9 +86,8 @@ static void
init_pchr(void)
{
struct pchrstr *p;
int pcount;
for (p = pchr, pcount = 0; pcount < prd_maxno; pcount++, p++) {
for (p = pchr; p->p_name; p++) {
if (opt_GO_RENEW) {
if (p->p_type == I_DUST || p->p_type == I_OIL)
p->p_nrdep = 0;