171 |
|
} else if ((outfd = open(outfile, O_RDWR)) >= 0) { |
172 |
|
if ((fp = fdopen(dup(outfd), "r+")) == NULL) |
173 |
|
goto filerr; |
174 |
< |
getheader(fp, NULL); /* skip header */ |
174 |
> |
getheader(fp, NULL, NULL); /* skip header */ |
175 |
|
if (fscnresolu(&hr, &vr, fp) < 0 || /* check resolution */ |
176 |
|
hr != hres*hmult || vr != vres*vmult) { |
177 |
|
fprintf(stderr, "%s: resolution mismatch on file \"%s\"\n", |
334 |
|
exit(cleanup(1)); |
335 |
|
} |
336 |
|
/* check header from rpict */ |
337 |
< |
getheader(fromrp, NULL); |
337 |
> |
getheader(fromrp, NULL, NULL); |
338 |
|
if (fscnresolu(&hr, &vr, fromrp) < 0 || hr != hres | vr != vres) { |
339 |
|
fprintf(stderr, "%s: resolution mismatch from %s\n", |
340 |
|
progname, rpargv[0]); |