fix unused_result

This commit is contained in:
iceman1001 2020-05-27 20:40:03 +02:00
commit 9417122714

View file

@ -204,7 +204,6 @@ static void write_ks_s(uint32_t ks1, uint32_t ks2, uint64_t shiftreg) {
// store buffer // store buffer
store(buf); store(buf);
} }
@ -438,7 +437,10 @@ static void *sorttable(void *dd) {
printf("cannot create outfile %s\n", outfile); printf("cannot create outfile %s\n", outfile);
exit(1); exit(1);
} }
write(fdout, table, numentries * DATASIZE); if (write(fdout, table, numentries * DATASIZE)) {
printf("writetable cannot write all of the data\n");
exit(1);
}
close(fdout); close(fdout);
// remove input file // remove input file