diff options
Diffstat (limited to 'lib/libk/stdio/vfprintf.c')
-rw-r--r-- | lib/libk/stdio/vfprintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libk/stdio/vfprintf.c b/lib/libk/stdio/vfprintf.c index d24e43e..a48600b 100644 --- a/lib/libk/stdio/vfprintf.c +++ b/lib/libk/stdio/vfprintf.c @@ -4,13 +4,14 @@ static char buffer[3 * sizeof(int) + 2]; int -vfprintf(FILE *restrict stream, const char *restrict format, va_list params) +vfprintf(FILE *__restrict__ stream, const char *__restrict__ format, va_list params) { int written = 0; + int i; int s = 0; int l = 0; - for (int i = 0; format[i] != '\0'; ++i) { + for (i = 0; format[i] != '\0'; ++i) { if (format[i] == '%') { written += stream->puts(stream, &format[s], l); s = i + 2; |