summaryrefslogtreecommitdiff
path: root/util-linux/fsck_minix.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-06-07 20:17:41 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-06-07 20:17:41 +0000
commit19008b83735341c91fa8a09a072ffe9816c9e423 (patch)
tree6e35288c247102998a775cbc16f9ec014e00e7fd /util-linux/fsck_minix.c
parent4c5ad2fc90389bf1239f17d84967d07b82f31dd7 (diff)
downloadbusybox-w32-19008b83735341c91fa8a09a072ffe9816c9e423.tar.gz
busybox-w32-19008b83735341c91fa8a09a072ffe9816c9e423.tar.bz2
busybox-w32-19008b83735341c91fa8a09a072ffe9816c9e423.zip
- reuse strings and messages. Saves about 600B
Diffstat (limited to 'util-linux/fsck_minix.c')
-rw-r--r--util-linux/fsck_minix.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index db44848b8..422cae3de 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -456,12 +456,13 @@ static void read_block(unsigned int nr, char *addr)
456 return; 456 return;
457 } 457 }
458 if (BLOCK_SIZE * nr != lseek(IN, BLOCK_SIZE * nr, SEEK_SET)) { 458 if (BLOCK_SIZE * nr != lseek(IN, BLOCK_SIZE * nr, SEEK_SET)) {
459 printf("Read error: unable to seek to block in file '%s'\n", 459 printf("%s: unable to seek to block in file '%s'\n",
460 current_name); 460 bb_msg_read_error, current_name);
461 errors_uncorrected = 1; 461 errors_uncorrected = 1;
462 memset(addr, 0, BLOCK_SIZE); 462 memset(addr, 0, BLOCK_SIZE);
463 } else if (BLOCK_SIZE != read(IN, addr, BLOCK_SIZE)) { 463 } else if (BLOCK_SIZE != read(IN, addr, BLOCK_SIZE)) {
464 printf("Read error: bad block in file '%s'\n", current_name); 464 printf("%s: bad block in file '%s'\n",
465 bb_msg_read_error, current_name);
465 errors_uncorrected = 1; 466 errors_uncorrected = 1;
466 memset(addr, 0, BLOCK_SIZE); 467 memset(addr, 0, BLOCK_SIZE);
467 } 468 }
@@ -483,7 +484,8 @@ static void write_block(unsigned int nr, char *addr)
483 if (BLOCK_SIZE * nr != lseek(IN, BLOCK_SIZE * nr, SEEK_SET)) 484 if (BLOCK_SIZE * nr != lseek(IN, BLOCK_SIZE * nr, SEEK_SET))
484 die("seek failed in write_block"); 485 die("seek failed in write_block");
485 if (BLOCK_SIZE != write(IN, addr, BLOCK_SIZE)) { 486 if (BLOCK_SIZE != write(IN, addr, BLOCK_SIZE)) {
486 printf("Write error: bad block in file '%s'\n", current_name); 487 printf("%s: bad block in file '%s'\n",
488 bb_msg_write_error, current_name);
487 errors_uncorrected = 1; 489 errors_uncorrected = 1;
488 } 490 }
489} 491}