chiark
/
gitweb
/
~ian
/
moebius2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09c0156
)
get flushoutput order right
author
Ian Jackson
<ian@davenant.relativity.greenend.org.uk>
Sat, 27 Sep 2008 15:09:02 +0000
(16:09 +0100)
committer
Ian Jackson
<ian@davenant.relativity.greenend.org.uk>
Sat, 27 Sep 2008 15:09:02 +0000
(16:09 +0100)
common.c
patch
|
blob
|
history
diff --git
a/common.c
b/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 (f
flush(stdout)||ferror
(stdout)) diee("stdout"); }
+void flushoutput(void) { if (f
error(stdout)||fflush
(stdout)) diee("stdout"); }