use restrict everywhere it's required by c99 and/or posix 2008
[musl] / src / stdio / sprintf.c
index 6b22540..9dff524 100644 (file)
@@ -1,7 +1,7 @@
 #include <stdio.h>
 #include <stdarg.h>
 
-int sprintf(char *s, const char *fmt, ...)
+int sprintf(char *restrict s, const char *restrict fmt, ...)
 {
        int ret;
        va_list ap;