From 4b4d68487c7fcc65f589be88390ce658d9d43a13 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 20 Jun 2019 00:04:58 +0200 Subject: stdio: fix putc(), plan9 version --- sys/include/stdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3