diff options
author | Denys Vlasenko | 2023-01-03 08:30:12 +0100 |
---|---|---|
committer | Denys Vlasenko | 2023-01-03 08:30:12 +0100 |
commit | bcb90b9c419c9d616f21d8fc143f9b343c064ed7 (patch) | |
tree | 7a7ae78033d5740b7186148a9edeb40b5d6cf6e7 | |
parent | 27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab (diff) | |
download | busybox-bcb90b9c419c9d616f21d8fc143f9b343c064ed7.zip busybox-bcb90b9c419c9d616f21d8fc143f9b343c064ed7.tar.gz |
xxd: use bb_simple_perror_msg... where appropriate
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | util-linux/hexdump_xxd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/hexdump_xxd.c b/util-linux/hexdump_xxd.c index b594289..9738a76 100644 --- a/util-linux/hexdump_xxd.c +++ b/util-linux/hexdump_xxd.c @@ -78,7 +78,7 @@ static void write_zeros(off_t count) do { unsigned sz = count < COMMON_BUFSIZE ? (unsigned)count : COMMON_BUFSIZE; if (fwrite(fillbuf, 1, sz, stdout) != sz) - bb_perror_msg_and_die("write error"); + bb_simple_perror_msg_and_die("write error"); count -= sz; } while (count != 0); } @@ -120,7 +120,7 @@ static void reverse(unsigned opt, const char *filename, char *opt_s) if (ofs != cur) { if (fseeko(stdout, ofs, SEEK_SET) != 0) { if (ofs < cur) - bb_perror_msg_and_die("cannot seek"); + bb_simple_perror_msg_and_die("cannot seek"); write_zeros(ofs - cur); } cur = ofs; |