diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-04-01 13:32:32 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-13 12:40:10 +0200 |
commit | 3941c8a88ad1a1670ceac6e1889496174efd398f (patch) | |
tree | e1104a7e796b60838366d810731959ae13c3ba20 /newlib/libc/stdio/fflush.c | |
parent | 26747c47bc0a1137e02e0377306d721cc3478855 (diff) | |
download | newlib-3941c8a88ad1a1670ceac6e1889496174efd398f.zip newlib-3941c8a88ad1a1670ceac6e1889496174efd398f.tar.gz newlib-3941c8a88ad1a1670ceac6e1889496174efd398f.tar.bz2 |
stdio: Replace _fwalk_reent() with _fwalk_sglue()
Replaced _fwalk_reent() with _fwalk_sglue(). The change adds an
extra __sglue object as a parameter, which will allow the passing
of a global __sglue object separate from the __sglue member of
struct _reent. The global __sglue object will be added in a
follow-on patch.
Diffstat (limited to 'newlib/libc/stdio/fflush.c')
-rw-r--r-- | newlib/libc/stdio/fflush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/fflush.c b/newlib/libc/stdio/fflush.c index 2b5f13b..6e946da 100644 --- a/newlib/libc/stdio/fflush.c +++ b/newlib/libc/stdio/fflush.c @@ -286,7 +286,7 @@ int fflush (register FILE * fp) { if (fp == NULL) - return _fwalk_reent (_GLOBAL_REENT, _fflush_r); + return _fwalk_sglue (_GLOBAL_REENT, _fflush_r, &_GLOBAL_REENT->__sglue); return _fflush_r (_REENT, fp); } |