summaryrefslogtreecommitdiff
path: root/src/stdio/fflush.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-28 14:16:50 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-28 14:16:50 -0500
commit354803e4f5300b428947dfa564e7dde45eced9bc (patch)
tree63c642f9cdf9b2ccfacd523269bc7ebbbc8b2a79 /src/stdio/fflush.c
parent69315080f1665373a1753c351fee1251af0545a4 (diff)
include <nonstd/internal.h> in <nonstd/io.h>, remove redundant includes
Diffstat (limited to 'src/stdio/fflush.c')
-rw-r--r--src/stdio/fflush.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stdio/fflush.c b/src/stdio/fflush.c
index c7514d10..c4b5ad58 100644
--- a/src/stdio/fflush.c
+++ b/src/stdio/fflush.c
@@ -1,6 +1,5 @@
#include <stdio.h>
#include "nonstd/io.h"
-#include "nonstd/internal.h"
/** flush buffered writes **/
int fflush(FILE *stream)
@@ -8,7 +7,7 @@ int fflush(FILE *stream)
flockfile(stream);
if (stream == NULL) {
FILE *p;
- for (p = __libc(FILE_TAIL); p != NULL; p = p->prev) {
+ for (p = __libc(FILE_STREAMS); p != NULL; p = p->prev) {
fflush(p);
}
}