| 16 |
|
|
| 17 |
|
#include "resolu.h" |
| 18 |
|
|
| 19 |
< |
#define MAXFILE 32 |
| 19 |
> |
#define MAXFILE 64 |
| 20 |
|
|
| 21 |
|
/* output picture size */ |
| 22 |
|
int xsiz = 0; |
| 116 |
|
goto userr; |
| 117 |
|
} |
| 118 |
|
dofiles: |
| 119 |
+ |
if (ysiz > 0 & ncolumns > 0) { |
| 120 |
+ |
fprintf(stderr, "%s: -a option incompatible with -y\n", |
| 121 |
+ |
progname); |
| 122 |
+ |
quit(1); |
| 123 |
+ |
} |
| 124 |
|
for (nfile = 0; an < argc; nfile++) { |
| 125 |
|
if (nfile >= MAXFILE) |
| 126 |
|
goto toomany; |
| 361 |
|
quit(code) /* exit gracefully */ |
| 362 |
|
int code; |
| 363 |
|
{ |
| 364 |
+ |
int status; |
| 365 |
+ |
|
| 366 |
+ |
if (code == 0) /* reap any children */ |
| 367 |
+ |
while (wait(&status) != -1) |
| 368 |
+ |
if (code == 0) |
| 369 |
+ |
code = status>>8 & 0xff; |
| 370 |
|
exit(code); |
| 371 |
|
} |