aboutsummaryrefslogtreecommitdiff
path: root/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'stdio')
-rw-r--r--stdio/stdio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdio/stdio.h b/stdio/stdio.h
index 2994432328..a36081d2d4 100644
--- a/stdio/stdio.h
+++ b/stdio/stdio.h
@@ -213,9 +213,9 @@ struct __stdio_file
See stdio/glue.c for what the confusing bit is about. */
#define __validfp(stream) \
(stream != NULL && \
- ((stream->__magic == _GLUEMAGIC && \
- (stream = *(((struct { int __magic; FILE **__p; } *) stream)->__p))), \
- (stream->__magic == _IOMAGIC)))
+ ({ if (stream->__magic == _GLUEMAGIC) \
+ stream = *((struct { int __magic; FILE **__p; } *) stream)->__p; \
+ stream->__magic == _IOMAGIC; }))
/* Clear the error and EOF indicators of STREAM. */
#define __clearerr(stream) ((stream)->__error = (stream)->__eof = 0)