aboutsummaryrefslogtreecommitdiff
path: root/editors
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 /editors
parent80d80ba6dd9e91cca471ce767c8032a0f0db4244 (diff)
downloadbusybox-7dd61e377223d150198a23dbec47f51c21e10e65.tar.gz
*: 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>
Diffstat (limited to 'editors')
-rw-r--r--editors/ed.c10
1 files changed, 5 insertions, 5 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)
fd = open(file, 0);
if (fd < 0) {
- perror(file);
+ bb_simple_perror_msg(file);
return FALSE;
}
@@ -721,7 +721,7 @@ static int readLines(const char *file, int num)
} while (cc > 0);
if (cc < 0) {
- perror(file);
+ bb_simple_perror_msg(file);
close(fd);
return FALSE;
}
@@ -761,7 +761,7 @@ static int writeLines(const char *file, int num1, int num2)
fd = creat(file, 0666);
if (fd < 0) {
- perror(file);
+ bb_simple_perror_msg(file);
return FALSE;
}
@@ -776,7 +776,7 @@ static int writeLines(const char *file, int num1, int num2)
while (num1++ <= num2) {
if (full_write(fd, lp->data, lp->len) != lp->len) {
- perror(file);
+ bb_simple_perror_msg(file);
close(fd);
return FALSE;
}
@@ -786,7 +786,7 @@ static int writeLines(const char *file, int num1, int num2)
}
if (close(fd) < 0) {
- perror(file);
+ bb_simple_perror_msg(file);
return FALSE;
}