diff options
author | Ron Yorston <rmy@pobox.com> | 2019-08-16 09:42:39 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-08-16 09:45:21 +0100 |
commit | 517cf74f6265ec4308b790b637b3f9778cbdc6e0 (patch) | |
tree | be9337069b60ca1bb03565d8575bacfc71181003 /coreutils/od_bloaty.c | |
parent | ae65dc37bcc9b1d9cef0b111131c79dc4ba1bf51 (diff) | |
parent | ac78f2ac96b3efd6551a08e7dc609efa1fb69481 (diff) | |
download | busybox-w32-517cf74f6265ec4308b790b637b3f9778cbdc6e0.tar.gz busybox-w32-517cf74f6265ec4308b790b637b3f9778cbdc6e0.tar.bz2 busybox-w32-517cf74f6265ec4308b790b637b3f9778cbdc6e0.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'coreutils/od_bloaty.c')
-rw-r--r-- | coreutils/od_bloaty.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index 75e14ef7d..ea1ab9de8 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c | |||
@@ -543,7 +543,7 @@ check_and_close(void) | |||
543 | } | 543 | } |
544 | 544 | ||
545 | if (ferror(stdout)) { | 545 | if (ferror(stdout)) { |
546 | bb_error_msg_and_die(bb_msg_write_error); | 546 | bb_simple_error_msg_and_die(bb_msg_write_error); |
547 | } | 547 | } |
548 | } | 548 | } |
549 | 549 | ||
@@ -848,7 +848,7 @@ skip(off_t n_skip) | |||
848 | } | 848 | } |
849 | 849 | ||
850 | if (n_skip) | 850 | if (n_skip) |
851 | bb_error_msg_and_die("can't skip past end of combined input"); | 851 | bb_simple_error_msg_and_die("can't skip past end of combined input"); |
852 | } | 852 | } |
853 | 853 | ||
854 | 854 | ||
@@ -1315,10 +1315,10 @@ int od_main(int argc UNUSED_PARAM, char **argv) | |||
1315 | pseudo_start = o2; | 1315 | pseudo_start = o2; |
1316 | argv[1] = NULL; | 1316 | argv[1] = NULL; |
1317 | } else { | 1317 | } else { |
1318 | bb_error_msg_and_die("the last two arguments must be offsets"); | 1318 | bb_simple_error_msg_and_die("the last two arguments must be offsets"); |
1319 | } | 1319 | } |
1320 | } else { /* >3 args */ | 1320 | } else { /* >3 args */ |
1321 | bb_error_msg_and_die("too many arguments"); | 1321 | bb_simple_error_msg_and_die("too many arguments"); |
1322 | } | 1322 | } |
1323 | 1323 | ||
1324 | if (pseudo_start >= 0) { | 1324 | if (pseudo_start >= 0) { |
@@ -1339,7 +1339,7 @@ int od_main(int argc UNUSED_PARAM, char **argv) | |||
1339 | if (option_mask32 & OPT_N) { | 1339 | if (option_mask32 & OPT_N) { |
1340 | end_offset = n_bytes_to_skip + max_bytes_to_format; | 1340 | end_offset = n_bytes_to_skip + max_bytes_to_format; |
1341 | if (end_offset < n_bytes_to_skip) | 1341 | if (end_offset < n_bytes_to_skip) |
1342 | bb_error_msg_and_die("SKIP + SIZE is too large"); | 1342 | bb_simple_error_msg_and_die("SKIP + SIZE is too large"); |
1343 | } | 1343 | } |
1344 | 1344 | ||
1345 | if (G.n_specs == 0) { | 1345 | if (G.n_specs == 0) { |
@@ -1396,7 +1396,7 @@ int od_main(int argc UNUSED_PARAM, char **argv) | |||
1396 | dump(n_bytes_to_skip, end_offset); | 1396 | dump(n_bytes_to_skip, end_offset); |
1397 | 1397 | ||
1398 | if (fclose(stdin)) | 1398 | if (fclose(stdin)) |
1399 | bb_perror_msg_and_die(bb_msg_standard_input); | 1399 | bb_simple_perror_msg_and_die(bb_msg_standard_input); |
1400 | 1400 | ||
1401 | return G.exit_code; | 1401 | return G.exit_code; |
1402 | } | 1402 | } |