| # | Line 193 | Line 193 | rad2mgf( /* convert a Radiance file to MGF */ | |
|---|---|---|
| 193 | } | |
| 194 | break; | |
| 195 | } | |
| 196 | < | printf("# End conversion from: %s\n", inp); |
| 197 | < | if (inp[0] == '!') |
| 198 | < | pclose(fp); |
| 199 | < | else |
| 196 | > | if (inp[0] == '!') { |
| 197 | > | if (pclose(fp) != 0) |
| 198 | > | fprintf(stderr, "%s: warning - bad exit status\n", inp); |
| 199 | > | } else |
| 200 | fclose(fp); | |
| 201 | + | printf("# End conversion from: %s\n", inp); |
| 202 | } | |
| 203 | ||
| 204 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |