diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-08-11 20:12:42 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-08-11 20:12:42 -0400 |
| commit | 0a908b26fa745b4b295e705564af5eaf25e4fbd4 (patch) | |
| tree | 43954c5d46ae3ddfac84be489083be23d7747c02 /src/stdio | |
| parent | f9a34b02407a270b18601c5c1e0d28f3f9b436d7 (diff) | |
remove dependence on "nonstd/internal.h"
Diffstat (limited to 'src/stdio')
| -rw-r--r-- | src/stdio/fflush.c | 2 | ||||
| -rw-r--r-- | src/stdio/fopen.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stdio/fflush.c b/src/stdio/fflush.c index 9030a39f..1b70d8b0 100644 --- a/src/stdio/fflush.c +++ b/src/stdio/fflush.c @@ -7,7 +7,7 @@ int fflush(FILE *stream) flockfile(stream); if (stream == NULL) { FILE *p; - for (p = __libc(FILE_STREAMS); p != NULL; p = p->prev) { + for (p = __stdio.FILES; p != NULL; p = p->prev) { fflush(p); } } diff --git a/src/stdio/fopen.c b/src/stdio/fopen.c index 8abf7709..95130917 100644 --- a/src/stdio/fopen.c +++ b/src/stdio/fopen.c @@ -5,7 +5,7 @@ /** open a file stream **/ FILE * fopen(const char * restrict filename, const char * restrict mode) { - struct __FILE *base = __libc(FILE_STREAMS); + struct __FILE *base = __stdio.FILES; struct __FILE *f = base; /* find the next available stream */ |
