aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-10-18 02:38:27 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-10-18 02:38:27 +0200
commitc05387d5deca9e57c38077debc0f705199f32006 (patch)
treef7b5b0983a5008b4ae55d60b80d86c84665bb7ed /editors
parent36af2f7977edc818af8c01392ef700439a9fe163 (diff)
downloadbusybox-w32-c05387d5deca9e57c38077debc0f705199f32006.tar.gz
busybox-w32-c05387d5deca9e57c38077debc0f705199f32006.tar.bz2
busybox-w32-c05387d5deca9e57c38077debc0f705199f32006.zip
*: replace xopen3 with xopen where makes sense
function old new delta uniq_main 421 416 -5 sort_main 803 798 -5 patch_main 2051 2046 -5 cpio_main 547 542 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r--editors/patch.c2
-rw-r--r--editors/patch_toybox.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/editors/patch.c b/editors/patch.c
index 764f0f183..66a9474fe 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -591,7 +591,7 @@ int patch_main(int argc UNUSED_PARAM, char **argv)
591 xmkpath(name, -1); 591 xmkpath(name, -1);
592 *s = '/'; 592 *s = '/';
593 } 593 }
594 TT.filein = xopen3(name, O_CREAT|O_EXCL|O_RDWR, 0666); 594 TT.filein = xopen(name, O_CREAT|O_EXCL|O_RDWR);
595 } else { 595 } else {
596 printf("patching file %s\n", name); 596 printf("patching file %s\n", name);
597 TT.filein = xopen(name, O_RDONLY); 597 TT.filein = xopen(name, O_RDONLY);
diff --git a/editors/patch_toybox.c b/editors/patch_toybox.c
index 04bd98eea..a60bf070f 100644
--- a/editors/patch_toybox.c
+++ b/editors/patch_toybox.c
@@ -559,7 +559,7 @@ int patch_main(int argc UNUSED_PARAM, char **argv)
559 xmkpath(name, -1); 559 xmkpath(name, -1);
560 *s = '/'; 560 *s = '/';
561 } 561 }
562 TT.filein = xopen3(name, O_CREAT|O_EXCL|O_RDWR, 0666); 562 TT.filein = xopen(name, O_CREAT|O_EXCL|O_RDWR);
563 } else { 563 } else {
564 printf("patching file %s\n", name); 564 printf("patching file %s\n", name);
565 TT.filein = xopen(name, O_RDWR); 565 TT.filein = xopen(name, O_RDWR);