X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvsnprintf.c;h=be2c44eb176d70a5d867b9f339dd58afe5953ec7;hb=96fbcf7d80f469e39d1dd12533f8bb8d13b64fe5;hp=ba17bd7d84079eb5bce14e5d7f341b267975dc17;hpb=e3cd6c5c265cd481db6e0c5b529855d99f0bda30;p=musl diff --git a/src/stdio/vsnprintf.c b/src/stdio/vsnprintf.c index ba17bd7d..be2c44eb 100644 --- a/src/stdio/vsnprintf.c +++ b/src/stdio/vsnprintf.c @@ -1,4 +1,8 @@ #include "stdio_impl.h" +#include +#include +#include +#include static size_t sn_write(FILE *f, const unsigned char *s, size_t l) { @@ -10,7 +14,7 @@ static size_t sn_write(FILE *f, const unsigned char *s, size_t l) return l; } -int vsnprintf(char *s, size_t n, const char *fmt, va_list ap) +int vsnprintf(char *restrict s, size_t n, const char *restrict fmt, va_list ap) { int r; char b;