diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-20 13:21:22 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-20 13:21:22 +0200 |
commit | bec588878b6d435c33d9b0aae6247715c259e3a4 (patch) | |
tree | 12b5da396307b0ae8782daa247cd4234805f8018 | |
parent | d3c5ab703bf6f42ec11fb770b86aaf927cf6b32d (diff) | |
download | busybox-w32-bec588878b6d435c33d9b0aae6247715c259e3a4.tar.gz busybox-w32-bec588878b6d435c33d9b0aae6247715c259e3a4.tar.bz2 busybox-w32-bec588878b6d435c33d9b0aae6247715c259e3a4.zip |
*: s/open3_or_warn/open_or_warn/ where makes sense
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r-- | coreutils/fsync.c | 2 | ||||
-rw-r--r-- | miscutils/crond.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/fsync.c b/coreutils/fsync.c index d1fe2b584..b8b463cd1 100644 --- a/coreutils/fsync.c +++ b/coreutils/fsync.c | |||
@@ -27,7 +27,7 @@ int fsync_main(int argc UNUSED_PARAM, char **argv) | |||
27 | 27 | ||
28 | status = EXIT_SUCCESS; | 28 | status = EXIT_SUCCESS; |
29 | do { | 29 | do { |
30 | int fd = open3_or_warn(*argv, O_NOATIME | O_NOCTTY | O_RDONLY, 0); | 30 | int fd = open_or_warn(*argv, O_NOATIME | O_NOCTTY | O_RDONLY); |
31 | 31 | ||
32 | if (fd == -1) { | 32 | if (fd == -1) { |
33 | status = EXIT_FAILURE; | 33 | status = EXIT_FAILURE; |
diff --git a/miscutils/crond.c b/miscutils/crond.c index fddddcd8c..7f2d54c9f 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -123,7 +123,7 @@ static void crondlog(const char *ctl, ...) | |||
123 | /* Syslog mode: all to syslog (logmode = LOGMODE_SYSLOG), */ | 123 | /* Syslog mode: all to syslog (logmode = LOGMODE_SYSLOG), */ |
124 | if (!DebugOpt && G.log_filename) { | 124 | if (!DebugOpt && G.log_filename) { |
125 | /* Otherwise (log to file): we reopen log file at every write: */ | 125 | /* Otherwise (log to file): we reopen log file at every write: */ |
126 | int logfd = open3_or_warn(G.log_filename, O_WRONLY | O_CREAT | O_APPEND, 0666); | 126 | int logfd = open_or_warn(G.log_filename, O_WRONLY | O_CREAT | O_APPEND); |
127 | if (logfd >= 0) | 127 | if (logfd >= 0) |
128 | xmove_fd(logfd, STDERR_FILENO); | 128 | xmove_fd(logfd, STDERR_FILENO); |
129 | } | 129 | } |