chiark / gitweb /
get flushoutput order right
authorIan Jackson <ian@davenant.relativity.greenend.org.uk>
Sat, 27 Sep 2008 15:09:02 +0000 (16:09 +0100)
committerIan Jackson <ian@davenant.relativity.greenend.org.uk>
Sat, 27 Sep 2008 15:09:02 +0000 (16:09 +0100)
common.c

index 62b981efa930fd19bbb3eab3bb94dd0ba0d14d69..fe58990f2c76888b5189682e76e988966b486149 100644 (file)
--- a/common.c
+++ b/common.c
@@ -62,4 +62,4 @@ void gsldie(int l, const char *what, int status) {
 
 void diee(const char *what) { perror(what); exit(16); }
 void fail(const char *emsg) { fputs(emsg,stderr); exit(12); }
-void flushoutput(void) { if (fflush(stdout)||ferror(stdout)) diee("stdout"); }
+void flushoutput(void) { if (ferror(stdout)||fflush(stdout)) diee("stdout"); }