diff options
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 464280b..86f8508 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -98,7 +98,7 @@ static const char *unpack_usage_messages(void) static void full_write2_str(const char *str) { - full_write(2, str, strlen(str)); + full_write(STDERR_FILENO, str, strlen(str)); } void bb_show_usage(void) diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c index ca44030..5c6df48 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) if (logmode & LOGMODE_STDIO) { fflush(stdout); - full_write(2, msg, used + msgeol_len); + full_write(STDERR_FILENO, msg, used + msgeol_len); } if (logmode & LOGMODE_SYSLOG) { syslog(LOG_ERR, "%s", msg + applet_len); |