| # | Line 14 | Line 14 | static const char RCSid[] = "$Id$"; | |
|---|---|---|
| 14 | #include <stdio.h> | |
| 15 | ||
| 16 | #include "platform.h" | |
| 17 | – | #include "paths.h" |
| 17 | #include "standard.h" | |
| 18 | #include "object.h" | |
| 19 | #include "otypes.h" | |
| # | Line 64 | Line 63 | readobj( /* read in an object file or stream */ | |
| 63 | getobject(inpspec, infp); | |
| 64 | } | |
| 65 | } | |
| 66 | < | if (inpspec[0] == '!') |
| 67 | < | pclose(infp); |
| 68 | < | else if (infp != stdin) |
| 66 | > | if (inpspec[0] == '!') { |
| 67 | > | if (pclose(infp) != 0) { |
| 68 | > | sprintf(errmsg, "bad status from \"%s\"", inpspec); |
| 69 | > | error(WARNING, errmsg); |
| 70 | > | } |
| 71 | > | } else if (infp != stdin) |
| 72 | fclose(infp); | |
| 73 | #ifdef getc_unlocked | |
| 74 | else | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |