diff options
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/perror.c | 6 | ||||
-rw-r--r-- | stdio-common/vfprintf.c | 8 |
2 files changed, 4 insertions, 10 deletions
diff --git a/stdio-common/perror.c b/stdio-common/perror.c index e7db55ae80..4b29f5286a 100644 --- a/stdio-common/perror.c +++ b/stdio-common/perror.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1993, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1993, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,8 +19,6 @@ #include <stdio.h> #include <errno.h> -extern char *_strerror_internal __P ((int, char *buf, size_t)); - /* Print a line on stderr consisting of the text in S, a colon, a space, a message describing the meaning of the contents of `errno' and a newline. If S is NULL or "", the colon and space are omitted. */ @@ -37,5 +35,5 @@ perror (const char *s) colon = ": "; (void) fprintf (stderr, "%s%s%s\n", - s, colon, _strerror_internal (errnum, buf, sizeof buf)); + s, colon, __strerror_r (errnum, buf, sizeof buf)); } diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index e13785f3a3..d8d0f87b0f 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -966,12 +966,8 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap) \ LABEL (form_strerror): \ /* Print description of error ERRNO. */ \ - { \ - extern char *_strerror_internal __P ((int, char *buf, size_t)); \ - \ - string = (char *) \ - _strerror_internal (save_errno, work_buffer, sizeof work_buffer); \ - } \ + string = \ + (char *) __strerror_r (save_errno, work_buffer, sizeof work_buffer); \ is_long = 0; /* This is no wide-char string. */ \ goto LABEL (print_string) |