aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <mmpolacek@gmail.com>2010-09-12 17:06:43 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-09-12 17:06:43 +0200
commit7dd61e377223d150198a23dbec47f51c21e10e65 (patch)
treedfeea615eaa4690932466c900db576805ad27ff8
parent80d80ba6dd9e91cca471ce767c8032a0f0db4244 (diff)
downloadbusybox-w32-7dd61e377223d150198a23dbec47f51c21e10e65.tar.gz
busybox-w32-7dd61e377223d150198a23dbec47f51c21e10e65.tar.bz2
busybox-w32-7dd61e377223d150198a23dbec47f51c21e10e65.zip
*: s/perror/bb_simple_perror_msg/g
function old new delta readLines 448 446 -2 doCommands 2449 2438 -11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-13) Total: -13 bytes Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r--editors/ed.c10
-rw-r--r--modutils/modutils-24.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/editors/ed.c b/editors/ed.c
index 516b8d78d..859668406 100644
--- a/editors/ed.c
+++ b/editors/ed.c
@@ -671,7 +671,7 @@ static int readLines(const char *file, int num)
671 671
672 fd = open(file, 0); 672 fd = open(file, 0);
673 if (fd < 0) { 673 if (fd < 0) {
674 perror(file); 674 bb_simple_perror_msg(file);
675 return FALSE; 675 return FALSE;
676 } 676 }
677 677
@@ -721,7 +721,7 @@ static int readLines(const char *file, int num)
721 } while (cc > 0); 721 } while (cc > 0);
722 722
723 if (cc < 0) { 723 if (cc < 0) {
724 perror(file); 724 bb_simple_perror_msg(file);
725 close(fd); 725 close(fd);
726 return FALSE; 726 return FALSE;
727 } 727 }
@@ -761,7 +761,7 @@ static int writeLines(const char *file, int num1, int num2)
761 761
762 fd = creat(file, 0666); 762 fd = creat(file, 0666);
763 if (fd < 0) { 763 if (fd < 0) {
764 perror(file); 764 bb_simple_perror_msg(file);
765 return FALSE; 765 return FALSE;
766 } 766 }
767 767
@@ -776,7 +776,7 @@ static int writeLines(const char *file, int num1, int num2)
776 776
777 while (num1++ <= num2) { 777 while (num1++ <= num2) {
778 if (full_write(fd, lp->data, lp->len) != lp->len) { 778 if (full_write(fd, lp->data, lp->len) != lp->len) {
779 perror(file); 779 bb_simple_perror_msg(file);
780 close(fd); 780 close(fd);
781 return FALSE; 781 return FALSE;
782 } 782 }
@@ -786,7 +786,7 @@ static int writeLines(const char *file, int num1, int num2)
786 } 786 }
787 787
788 if (close(fd) < 0) { 788 if (close(fd) < 0) {
789 perror(file); 789 bb_simple_perror_msg(file);
790 return FALSE; 790 return FALSE;
791 } 791 }
792 792
diff --git a/modutils/modutils-24.c b/modutils/modutils-24.c
index 7228954d6..2b34954c0 100644
--- a/modutils/modutils-24.c
+++ b/modutils/modutils-24.c
@@ -3561,7 +3561,7 @@ static void check_tainted_module(struct obj_file *f, const char *m_name)
3561 else if (errno == EACCES) 3561 else if (errno == EACCES)
3562 kernel_has_tainted = 1; 3562 kernel_has_tainted = 1;
3563 else { 3563 else {
3564 perror(TAINT_FILENAME); 3564 bb_simple_perror_msg(TAINT_FILENAME);
3565 kernel_has_tainted = 0; 3565 kernel_has_tainted = 0;
3566 } 3566 }
3567 } 3567 }