diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-16 01:02:50 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-16 01:02:50 +0000 |
commit | a1915d4502e23cc0c30e1c80a31971e71e7340a5 (patch) | |
tree | 8502cb726a6ab5f8f041ab9ea6ea7dcca7b4c36b /libc/misc/error | |
parent | b865ce517bd48ce9f11dac018d350ed69a533e2b (diff) |
Convert users
Diffstat (limited to 'libc/misc/error')
-rw-r--r-- | libc/misc/error/err.c | 4 | ||||
-rw-r--r-- | libc/misc/error/error.c | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/libc/misc/error/err.c b/libc/misc/error/err.c index 922cd8aba..ddb8786b0 100644 --- a/libc/misc/error/err.c +++ b/libc/misc/error/err.c @@ -84,7 +84,7 @@ void warnx(const char *format, ...) void attribute_hidden __verr(int status, const char *format, va_list args) { __vwarn(format, args); - exit(status); + __exit(status); } strong_alias(__verr,verr) @@ -103,7 +103,7 @@ void attribute_noreturn err(int status, const char *format, ...) void attribute_hidden __verrx(int status, const char *format, va_list args) { __vwarnx(format, args); - exit(status); + __exit(status); } strong_alias(__verrx,verrx) diff --git a/libc/misc/error/error.c b/libc/misc/error/error.c index 119396570..b51177e35 100644 --- a/libc/misc/error/error.c +++ b/libc/misc/error/error.c @@ -32,6 +32,7 @@ #include <string.h> #include "error.h" +extern int __putc(int c, FILE *stream) attribute_hidden; /* This variable is incremented each time `error' is called. */ unsigned int error_message_count; @@ -57,9 +58,9 @@ void __error (int status, int errnum, const char *message, ...) if (errnum) { fprintf (stderr, ": %s", strerror (errnum)); } - putc ('\n', stderr); + __putc ('\n', stderr); if (status) - exit (status); + __exit (status); } void __error_at_line (int status, int errnum, const char *file_name, @@ -93,9 +94,9 @@ void __error_at_line (int status, int errnum, const char *file_name, if (errnum) { fprintf (stderr, ": %s", strerror (errnum)); } - putc ('\n', stderr); + __putc ('\n', stderr); if (status) - exit (status); + __exit (status); } /* Use the weaks here in an effort at controlling namespace pollution */ |