diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-04 00:46:31 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-04 00:46:31 +0000 |
commit | cd662e64be1b10615e2fb44d5f3dc97eca905a31 (patch) | |
tree | 3ce4c8efdd7bd86c94c2cd55485be726921c950b /libc/misc/error | |
parent | 2aa7788e7f161b9c51f3f5ec685b280fe42e380d (diff) |
tweak __progname handling some more since some [bad] apps actually try and use it
Diffstat (limited to 'libc/misc/error')
-rw-r--r-- | libc/misc/error/err.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/misc/error/err.c b/libc/misc/error/err.c index ddb8786b0..43fe60cc6 100644 --- a/libc/misc/error/err.c +++ b/libc/misc/error/err.c @@ -19,10 +19,8 @@ #endif #ifdef __UCLIBC_MJN3_ONLY__ -#warning REMINDER: Need a centralized __progname prototype. #warning REMINDER: Deal with wide oriented stderr case. #endif -extern const char *__progname; static void vwarn_work(const char *format, va_list args, int showerr) { @@ -41,7 +39,7 @@ static void vwarn_work(const char *format, va_list args, int showerr) __STDIO_AUTO_THREADLOCK(stderr); - fprintf(stderr, fmt, __progname); + fprintf(stderr, fmt, __uclibc_progname); if (format) { vfprintf(stderr, format, args); f -= 2; /* At 5 (showerr) or 9. */ |