diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-01 11:58:38 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-01 11:58:38 +0000 |
commit | 0c97c9d43707da745fe2bc62ab2a69497ceaf666 (patch) | |
tree | 267d0feb99f457b68c09315b3f3aebe8dfd6d411 /libbb/dump.c | |
parent | d65ea39ffc7503807fa95e8840c012a80c83e4f3 (diff) | |
download | busybox-w32-0c97c9d43707da745fe2bc62ab2a69497ceaf666.tar.gz busybox-w32-0c97c9d43707da745fe2bc62ab2a69497ceaf666.tar.bz2 busybox-w32-0c97c9d43707da745fe2bc62ab2a69497ceaf666.zip |
'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.
263 bytes saved.
Diffstat (limited to 'libbb/dump.c')
-rw-r--r-- | libbb/dump.c | 8 |
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; |