summaryrefslogtreecommitdiff
path: root/libbb/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/dump.c')
-rw-r--r--libbb/dump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/dump.c b/libbb/dump.c
index 0d1bb18f2..829050d69 100644
--- a/libbb/dump.c
+++ b/libbb/dump.c
@@ -297,7 +297,7 @@ static void do_skip(const char *fname, int statok)
297 297
298 if (statok) { 298 if (statok) {
299 if (fstat(STDIN_FILENO, &sbuf)) { 299 if (fstat(STDIN_FILENO, &sbuf)) {
300 bb_perror_msg_and_die("%s", fname); 300 bb_simple_perror_msg_and_die(fname);
301 } 301 }
302 if ((!(S_ISCHR(sbuf.st_mode) || 302 if ((!(S_ISCHR(sbuf.st_mode) ||
303 S_ISBLK(sbuf.st_mode) || 303 S_ISBLK(sbuf.st_mode) ||
@@ -309,7 +309,7 @@ static void do_skip(const char *fname, int statok)
309 } 309 }
310 } 310 }
311 if (fseek(stdin, bb_dump_skip, SEEK_SET)) { 311 if (fseek(stdin, bb_dump_skip, SEEK_SET)) {
312 bb_perror_msg_and_die("%s", fname); 312 bb_simple_perror_msg_and_die(fname);
313 } 313 }
314 savaddress = address += bb_dump_skip; 314 savaddress = address += bb_dump_skip;
315 bb_dump_skip = 0; 315 bb_dump_skip = 0;
@@ -328,7 +328,7 @@ static int next(char **argv)
328 for (;;) { 328 for (;;) {
329 if (*_argv) { 329 if (*_argv) {
330 if (!(freopen(*_argv, "r", stdin))) { 330 if (!(freopen(*_argv, "r", stdin))) {
331 bb_perror_msg("%s", *_argv); 331 bb_simple_perror_msg(*_argv);
332 exitval = 1; 332 exitval = 1;
333 ++_argv; 333 ++_argv;
334 continue; 334 continue;
@@ -393,7 +393,7 @@ static unsigned char *get(void)
393 bb_dump_length == -1 ? need : MIN(bb_dump_length, need), stdin); 393 bb_dump_length == -1 ? need : MIN(bb_dump_length, need), stdin);
394 if (!n) { 394 if (!n) {
395 if (ferror(stdin)) { 395 if (ferror(stdin)) {
396 bb_perror_msg("%s", _argv[-1]); 396 bb_simple_perror_msg(_argv[-1]);
397 } 397 }
398 ateof = 1; 398 ateof = 1;
399 continue; 399 continue;