improved stupid test

This commit is contained in:
ceriel 1988-04-19 16:45:19 +00:00
parent 9d3f9ea496
commit bbe4d39ddd

View file

@ -21,7 +21,7 @@ rd_arhdr(fd, arhdr)
i = read(fd, c, AR_TOTAL); i = read(fd, c, AR_TOTAL);
if (i == 0) return 0; if (i == 0) return 0;
if (i < 0 || i != AR_TOTAL) { if (i != AR_TOTAL) {
rd_fatal(); rd_fatal();
} }
i = 14; i = 14;
@ -41,7 +41,7 @@ rd_arhdr(fd, arhdr)
register int i; register int i;
i = read(fd, (char *) arhdr, AR_TOTAL); i = read(fd, (char *) arhdr, AR_TOTAL);
if (i == 0) return 0; if (i == 0) return 0;
if (i < 0 || i != AR_TOTAL) rd_fatal(); if (i != AR_TOTAL) rd_fatal();
} }
#endif #endif
return 1; return 1;