aboutsummaryrefslogtreecommitdiff
path: root/sys/libc/stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libc/stdio.c')
-rw-r--r--sys/libc/stdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/libc/stdio.c b/sys/libc/stdio.c
index f3295b2..8bbbe9a 100644
--- a/sys/libc/stdio.c
+++ b/sys/libc/stdio.c
@@ -8,7 +8,7 @@ printf(byte* fmt, ...)
va_start(args, fmt);
int nw, rem, peek, len;
- byte* str;
+ byte *str, c;
while (*fmt) {
rem = INT_MAX - nw;
@@ -30,7 +30,7 @@ printf(byte* fmt, ...)
switch (*fmt++) {
case 'c':
- byte c = va_arg(args, int);
+ c = va_arg(args, int);
if (rem < 0) return -1;
// TODO: Print here
nw++;