diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-04-17 04:01:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-04-17 04:01:04 +0000 |
commit | a4de3776142887852635b507b43e1e5f7d993774 (patch) | |
tree | 01fc5915f10415445de71ce513801d8a0e817b8e | |
parent | 86d273076ccefde7891e22346ae5bbfa789f26eb (diff) | |
download | glibc-a4de3776142887852635b507b43e1e5f7d993774.tar.gz glibc-a4de3776142887852635b507b43e1e5f7d993774.tar.xz glibc-a4de3776142887852635b507b43e1e5f7d993774.zip |
Update.
* stdio-common/perror.c (perror): We don't need to set the offset to _IO_pos_bad, this is how streams are initialized.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | stdio-common/perror.c | 8 |
2 files changed, 4 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog index f24395f0a5..ab8c84e53a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-04-16 Ulrich Drepper <drepper@redhat.com> + * stdio-common/perror.c (perror): We don't need to set the offset + to _IO_pos_bad, this is how streams are initialized. + * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned. (time_output): If necessary, allocate new buffer for .name string if padding is required. diff --git a/stdio-common/perror.c b/stdio-common/perror.c index 9899c7d509..8db3ca465e 100644 --- a/stdio-common/perror.c +++ b/stdio-common/perror.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-1993,1997,1998,2000-2002 Free Software Foundation, Inc. +/* Copyright (C) 1991-1993,1997,1998,2000-2003 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 @@ -55,7 +55,6 @@ void perror (const char *s) { int errnum = errno; -#ifdef USE_IN_LIBIO FILE *fp; int fd = -1; @@ -83,11 +82,6 @@ perror (const char *s) perror_internal (fp, s, errnum); /* Close the stream. */ fclose (fp); - - ((_IO_FILE *) stderr)->_offset = _IO_pos_BAD; } -#else - perror_internal (stderr, s, errnum); -#endif } libc_hidden_def (perror) |