summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/include/stdio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/include/stdio.h b/sys/include/stdio.h
index 834bfb4ab..d348f179e 100644
--- a/sys/include/stdio.h
+++ b/sys/include/stdio.h
@@ -92,7 +92,7 @@ int getchar(void);
#define getchar() getc(stdin)
char *gets(char *);
int putc(int, FILE *);
-#define putc(c, f) ((f)->wp>=(f)->rp?_IO_putc(c, f):(*(f)->wp++=c)&_IO_CHMASK)
+#define putc(c, f) ((f)->wp>=(f)->rp?_IO_putc(c, f):(*(f)->wp++=(c)&_IO_CHMASK))
int _IO_putc(int, FILE *);
int putchar(int);
#define putchar(c) putc(c, stdout)