X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Fstdio_impl.h;h=d7398f5913bed58de2c97c884aa262ab6514c121;hb=1ef37aa00ea830dfda76e04e3d941cafa74d8b76;hp=44497344971821c326a511ccb5687d9463730b61;hpb=a21a6092cfc0c7e7cb8c0273e5f94d54c0e0eabd;p=musl diff --git a/src/internal/stdio_impl.h b/src/internal/stdio_impl.h index 44497344..d7398f59 100644 --- a/src/internal/stdio_impl.h +++ b/src/internal/stdio_impl.h @@ -34,11 +34,9 @@ struct _IO_FILE { int fd; int pipe_pid; long lockcount; - short dummy3; - signed char mode; - signed char lbf; + int mode; volatile int lock; - volatile int waiters; + int lbf; void *cookie; off_t off; char *getln_buf; @@ -106,7 +104,8 @@ hidden void __getopt_msg(const char *, const char *, const char *, size_t); #define putc_unlocked(c, f) \ ( (((unsigned char)(c)!=(f)->lbf && (f)->wpos!=(f)->wend)) \ - ? *(f)->wpos++ = (c) : __overflow((f),(c)) ) + ? *(f)->wpos++ = (unsigned char)(c) \ + : __overflow((f),(unsigned char)(c)) ) /* Caller-allocated FILE * operations */ hidden FILE *__fopen_rb_ca(const char *, FILE *, unsigned char *, size_t);