diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:48:17 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:48:17 +0000 |
commit | 5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d (patch) | |
tree | 44b7cf5fb706b0816dd4525782ca8c37d07c2f43 /libbb | |
parent | 636a1f85e89432601c59cdc3239fc867b4adf051 (diff) | |
download | busybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.tar.gz busybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.tar.bz2 busybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.zip |
- use STD*_FILENO some more. No object-code changes
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 2 | ||||
-rw-r--r-- | libbb/verror_msg.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 464280b17..86f85081c 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -98,7 +98,7 @@ static const char *unpack_usage_messages(void) | |||
98 | 98 | ||
99 | static void full_write2_str(const char *str) | 99 | static void full_write2_str(const char *str) |
100 | { | 100 | { |
101 | full_write(2, str, strlen(str)); | 101 | full_write(STDERR_FILENO, str, strlen(str)); |
102 | } | 102 | } |
103 | 103 | ||
104 | void bb_show_usage(void) | 104 | void bb_show_usage(void) |
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c index ca44030b2..5c6df48d4 100644 --- a/libbb/verror_msg.c +++ b/libbb/verror_msg.c | |||
@@ -56,7 +56,7 @@ void bb_verror_msg(const char *s, va_list p, const char* strerr) | |||
56 | 56 | ||
57 | if (logmode & LOGMODE_STDIO) { | 57 | if (logmode & LOGMODE_STDIO) { |
58 | fflush(stdout); | 58 | fflush(stdout); |
59 | full_write(2, msg, used + msgeol_len); | 59 | full_write(STDERR_FILENO, msg, used + msgeol_len); |
60 | } | 60 | } |
61 | if (logmode & LOGMODE_SYSLOG) { | 61 | if (logmode & LOGMODE_SYSLOG) { |
62 | syslog(LOG_ERR, "%s", msg + applet_len); | 62 | syslog(LOG_ERR, "%s", msg + applet_len); |