Commit 29ac1543 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

use errx for fcntl error messages

parent c3c4f3b7
...@@ -389,8 +389,8 @@ int main (int argc, char **argv) ...@@ -389,8 +389,8 @@ int main (int argc, char **argv)
if (fcntl(fd, F_SETFL, flags)) { if (fcntl(fd, F_SETFL, flags)) {
warn("fcntl failed"); warn("fcntl failed");
if (direct) if (direct)
fprintf(stderr, "Please retry without -D\n"); errx(1, "please retry without -D");
exit(1); errx(1, "it is so sad");
} }
for (woffset = 0 ; woffset + size <= wsize ; woffset += size) { for (woffset = 0 ; woffset + size <= wsize ; woffset += size) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment