projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wchar: Ensure that wchar_t gets defined on uClibc.
[gnulib.git]
/
lib
/
close-stream.c
diff --git
a/lib/close-stream.c
b/lib/close-stream.c
index
f71eaef
..
8819b58
100644
(file)
--- a/
lib/close-stream.c
+++ b/
lib/close-stream.c
@@
-1,7
+1,6
@@
/* Close a stream, with nicer error checking than fclose's.
/* Close a stream, with nicer error checking than fclose's.
- Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2006, 2007, 2008 Free
- Software Foundation, Inc.
+ Copyright (C) 1998-2002, 2004, 2006-2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-56,9
+55,9
@@
int
close_stream (FILE *stream)
{
int
close_stream (FILE *stream)
{
- bool some_pending = (__fpending (stream) != 0);
- bool prev_fail = (ferror (stream) != 0);
- bool fclose_fail = (fclose (stream) != 0);
+
const
bool some_pending = (__fpending (stream) != 0);
+
const
bool prev_fail = (ferror (stream) != 0);
+
const
bool fclose_fail = (fclose (stream) != 0);
/* Return an error indication if there was a previous failure or if
fclose failed, with one exception: ignore an fclose failure if
/* Return an error indication if there was a previous failure or if
fclose failed, with one exception: ignore an fclose failure if