summaryrefslogtreecommitdiffstats
path: root/lib/closeout.c
diff options
context:
space:
mode:
authorClaudio Fontana <sick_soul@users.sourceforge.net>2006-07-21 23:40:02 +0000
committerClaudio Fontana <sick_soul@users.sourceforge.net>2006-07-21 23:40:02 +0000
commit9a72ecd6dc36eab0497dc428d10a6ad1dd87a19a (patch)
treea528fd617cda36f619bc076429b0995bcda12e2c /lib/closeout.c
parentee29ecd605b329c38ab4c6c6c89d6288693495de (diff)
downloadidutils-9a72ecd6dc36eab0497dc428d10a6ad1dd87a19a.tar.gz
idutils-9a72ecd6dc36eab0497dc428d10a6ad1dd87a19a.tar.bz2
idutils-9a72ecd6dc36eab0497dc428d10a6ad1dd87a19a.zip
* upgraded gnulib
Diffstat (limited to 'lib/closeout.c')
-rw-r--r--lib/closeout.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/closeout.c b/lib/closeout.c
index 5d0509d..2137fd4 100644
--- a/lib/closeout.c
+++ b/lib/closeout.c
@@ -1,7 +1,7 @@
/* closeout.c - close standard output
- Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 Free Software
- Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2006 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
@@ -73,9 +73,9 @@ close_stdout_set_file_name (const char *file)
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)
{