From 893694168d8b943505ff30bd4db57ac8aaef6fef Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 9 Feb 2015 21:00:38 -0500 Subject: optimization --- libc/stdio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/stdio.c') diff --git a/libc/stdio.c b/libc/stdio.c index 0ef8b0c..8219d11 100644 --- a/libc/stdio.c +++ b/libc/stdio.c @@ -3,12 +3,12 @@ #include #include -static void (*putchar_ptr)(char) = log_putchar; +static void (*putchar_ptr)(int) = log_putchar; static void (*puts_ptr)(const char*) = log_puts; int putchar(int ch) { - putchar_ptr((char)ch); + putchar_ptr(ch); return 0; } @@ -18,7 +18,7 @@ int puts(const char* str) return 0; } -void set_putchar(void (*func)(char)) +void set_putchar(void (*func)(int)) { putchar_ptr = func; } -- cgit v1.1