NetBSD assumes off_t is 64-bit, but on MINIX it is still 32-bit.
So cast the calls to use big_off_t, as stat(2) uses.
Only used in warning messages, was not a real production bug.
if (osb.st_size != size) {
maybe_warnx("output file: %s wrong size (%" PRIdOFF
" != %" PRIdOFF "), deleting",
+#ifndef __minix
outfile, osb.st_size, size);
+#else
+ outfile, osb.st_size, (big_off_t)size);
+#endif
goto bad_outfile;
}
if (osb.st_size != size) {
maybe_warnx("stat gave different size: %" PRIdOFF
" != %" PRIdOFF " (leaving original)",
+#ifndef __minix
size, osb.st_size);
+#else
+ (big_off_t)size, osb.st_size);
+#endif
close(ofd);
unlink(outfile);
return -1;