diff options
Diffstat (limited to 'sys/libc')
-rw-r--r-- | sys/libc/rules.mk | 2 | ||||
-rw-r--r-- | sys/libc/stdio.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/libc/rules.mk b/sys/libc/rules.mk index f017738..96d4202 100644 --- a/sys/libc/rules.mk +++ b/sys/libc/rules.mk @@ -4,7 +4,7 @@ include share/push.mk # Local sources SRCS_$(d) := $(wildcard $(d)/*.c) -LIBS_$(d) := $(d)/libc.a +LIBS_$(d) := $(d)/libc_n.a BINS_$(d) := include share/paths.mk 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++; |