From a83423db06893f4a8e90c9324e4c59dbc5ff4234 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 27 Sep 2008 16:09:02 +0100 Subject: [PATCH] get flushoutput order right --- common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.c b/common.c index 62b981e..fe58990 100644 --- 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"); } -- 2.30.2