diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-06-19 23:59:25 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-06-19 23:59:25 +0200 |
commit | ef1bcc7338e92e44824d1361465d1bc6ec3bd9c6 (patch) | |
tree | b98fa5aa9989a4a77170ce02773fa872097f04d6 | |
parent | 63191949b911658c3774e727061fcf166ad9ace2 (diff) | |
download | plan9front-ef1bcc7338e92e44824d1361465d1bc6ec3bd9c6.tar.xz |
ape: fix stdio putc() macro, avoiding "result of operation not used" warning
moving _IO_CHMASK masking on the right hand side fixes it.
-rw-r--r-- | sys/include/ape/stdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/include/ape/stdio.h b/sys/include/ape/stdio.h index 1e3e585f5..cadc93c40 100644 --- a/sys/include/ape/stdio.h +++ b/sys/include/ape/stdio.h @@ -112,7 +112,7 @@ extern int getchar(void); #define getchar() getc(stdin) extern char *gets(char *); extern 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)) extern int _IO_putc(int, FILE *); extern int putchar(int); #define putchar(c) putc(c, stdout) |