don't print NULL(); for a null vector...

This commit is contained in:
cgd 1993-06-07 00:02:00 +00:00
parent 0d126d8b38
commit c22f041826
2 changed files with 2 additions and 2 deletions

View File

@ -650,7 +650,7 @@ i386_ioconf()
fprintf(stderr, "remapped irq 2 to irq 9, please update your config file\n");
dp->d_irq = 9;
}
if (dp->d_irq != -1)
if (dp->d_irq != -1 && dp->d_irq != -2)
fprintf(fp, " extern %s();", shandler(dp));
fprintf(fp, "\n");
}

View File

@ -650,7 +650,7 @@ i386_ioconf()
fprintf(stderr, "remapped irq 2 to irq 9, please update your config file\n");
dp->d_irq = 9;
}
if (dp->d_irq != -1)
if (dp->d_irq != -1 && dp->d_irq != -2)
fprintf(fp, " extern %s();", shandler(dp));
fprintf(fp, "\n");
}