Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* stdio-common/perror.c (perror): We don't need to set the offset
	to _IO_pos_bad, this is how streams are initialized.
  • Loading branch information
Ulrich Drepper committed Apr 17, 2003
1 parent 86d2730 commit a4de377
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 1 addition & 7 deletions stdio-common/perror.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -55,7 +55,6 @@ void
perror (const char *s)
{
int errnum = errno;
#ifdef USE_IN_LIBIO
FILE *fp;
int fd = -1;

Expand Down Expand Up @@ -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)

0 comments on commit a4de377

Please sign in to comment.