diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-21 02:57:38 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-21 02:57:38 +0000 |
commit | 34ef548a3770131a03cf55866caedc8c50793617 (patch) | |
tree | 0e630f982564334fbeba4e513d9015db248537cc | |
parent | 62ed552b937bc0367df22207d316c14614e94421 (diff) | |
download | glibc-34ef548a3770131a03cf55866caedc8c50793617.zip glibc-34ef548a3770131a03cf55866caedc8c50793617.tar.gz glibc-34ef548a3770131a03cf55866caedc8c50793617.tar.bz2 |
Update.
2001-08-20 Ulrich Drepper <drepper@redhat.com>
* misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
* misc/err.c (convert_and_print): Likewise.
* malloc/obstack.c (print_and_abort): Use fprintf instead of two
function calls.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | malloc/obstack.c | 5 | ||||
-rw-r--r-- | misc/err.c | 2 | ||||
-rw-r--r-- | misc/error.c | 2 |
4 files changed, 11 insertions, 6 deletions
@@ -1,3 +1,11 @@ +2001-08-20 Ulrich Drepper <drepper@redhat.com> + + * misc/error.c (error_tail): Use fputws_unlocked instead of fputws. + * misc/err.c (convert_and_print): Likewise. + + * malloc/obstack.c (print_and_abort): Use fprintf instead of two + function calls. + 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com> * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the diff --git a/malloc/obstack.c b/malloc/obstack.c index e5c0c40..06b2fbd 100644 --- a/malloc/obstack.c +++ b/malloc/obstack.c @@ -489,10 +489,7 @@ print_and_abort () __fwprintf (stderr, L"%s\n", _("memory exhausted")); else #endif - { - fputs (_("memory exhausted"), stderr); - fputc ('\n', stderr); - } + fprintf (stderr, "%s\n", _("memory exhausted")); exit (obstack_exit_failure); } @@ -69,7 +69,7 @@ convert_and_print (const char *format, __gnuc_va_list ap) if (wformat == NULL) { - fputws (L"out of memory\n", stderr); + fputws_unlocked (L"out of memory\n", stderr); return; } } diff --git a/misc/error.c b/misc/error.c index 1c9c4a6..aa0d8bb 100644 --- a/misc/error.c +++ b/misc/error.c @@ -151,7 +151,7 @@ error_tail (int status, int errnum, const char *message, va_list args) if (wmessage == NULL) { - fputws (L"out of memory\n", stderr); + fputws_unlocked (L"out of memory\n", stderr); return; } } |