fix copy/paste error in popen changes that broke signals
[musl] / src / stdio / printf.c
index efeb8b3..cebfe40 100644 (file)
@@ -1,12 +1,12 @@
 #include <stdio.h>
 #include <stdarg.h>
 
-int printf(const char *fmt, ...)
+int printf(const char *restrict fmt, ...)
 {
        int ret;
        va_list ap;
        va_start(ap, fmt);
-       ret = vprintf(fmt, ap);
+       ret = vfprintf(stdout, fmt, ap);
        va_end(ap);
        return ret;
 }