summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/stdio.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/stdio.c b/lib/stdio.c
index a718ee4..67f0a54 100644
--- a/lib/stdio.c
+++ b/lib/stdio.c
@@ -3,7 +3,7 @@
#include <unistd.h>
_syscall1(int, puts, char*, s);
-_syscall1(int, rsputs, char*, s);
+_syscall1(int, ctty, int, ctty);
int printf(char *fmt, ...) {
int ret;
@@ -18,15 +18,13 @@ int printf(char *fmt, ...) {
return ret;
}
-int rsprintf(char *fmt, ...) {
+int sprintf(char *str, char *fmt, ...) {
int ret;
- char buf[1024];
va_list ap;
va_start(ap, fmt);
- ret = vsprintf(buf, fmt, ap);
+ ret = vsprintf(str, fmt, ap);
va_end(ap);
- rsputs(buf);
return ret;
}