aboutsummaryrefslogtreecommitdiff
path: root/sys/libc
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-05-15 18:11:58 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-05-15 18:11:58 -0700
commitfa25c8f3df6791727b9384c9b405c996ac68b8ab (patch)
treea7a2a627b0deb612472138f389fe533761a01f0e /sys/libc
parent05aeef535ac60ccca81fe58bc6a0152ca80bc211 (diff)
feat: added buffered io to libn
Diffstat (limited to 'sys/libc')
-rw-r--r--sys/libc/rules.mk2
-rw-r--r--sys/libc/stdio.c4
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++;