X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fprintf.c;h=cebfe404fb97d465545020a76ba9b928cfcbb15a;hb=96fbcf7d80f469e39d1dd12533f8bb8d13b64fe5;hp=efeb8b3327a391c0dbb677ac8fe315e4f8fd9ae4;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stdio/printf.c b/src/stdio/printf.c index efeb8b33..cebfe404 100644 --- a/src/stdio/printf.c +++ b/src/stdio/printf.c @@ -1,12 +1,12 @@ #include #include -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; }