major stdio overhaul, using readv/writev, plus other changes
[musl] / src / stdio / putc_unlocked.c
index f01da71..b47876c 100644 (file)
@@ -1,8 +1,8 @@
 #include "stdio_impl.h"
 
-int putc_unlocked(int c, FILE *f)
+int (putc_unlocked)(int c, FILE *f)
 {
-       return f->wpos < f->wstop ? (*f->wpos++ = c) : __overflow(f, c);
+       return putc_unlocked(c, f);
 }
 
 weak_alias(putc_unlocked, fputc_unlocked);