projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* closeout.c (close_stdout): Don't assume 'bool' converts nonzero
[gnulib.git]
/
lib
/
closeout.c
diff --git
a/lib/closeout.c
b/lib/closeout.c
index
5d0509d
..
2137fd4
100644
(file)
--- a/
lib/closeout.c
+++ b/
lib/closeout.c
@@
-1,7
+1,7
@@
/* closeout.c - close standard output
/* closeout.c - close standard output
- Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004
Free Softwar
e
- Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004
, 2006 Fre
e
+
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
@@
-73,9
+73,9
@@
close_stdout_set_file_name (const char *file)
void
close_stdout (void)
{
void
close_stdout (void)
{
- bool
prev_fail = ferror (stdout
);
- bool
none_pending = (0 == __fpending (stdout)
);
- bool fclose_fail =
fclose (stdout
);
+ bool
none_pending = (__fpending (stdout) == 0
);
+ bool
prev_fail = (ferror (stdout) != 0
);
+ bool fclose_fail =
(fclose (stdout) != 0
);
if (prev_fail || fclose_fail)
{
if (prev_fail || fclose_fail)
{