From 6da1949cb5c4245cfb1fcee1efadb049904be26f Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 14 Mar 2011 23:11:32 +0100 Subject: use fputwc in putwchar() use fputwc instead of fputc add hidden fputwc to avoid jump relocation Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/stdio/putwchar.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libc/stdio/putwchar.c') diff --git a/libc/stdio/putwchar.c b/libc/stdio/putwchar.c index 3fadb61db..96de6a285 100644 --- a/libc/stdio/putwchar.c +++ b/libc/stdio/putwchar.c @@ -9,7 +9,6 @@ #ifdef __DO_UNLOCKED - wint_t putwchar_unlocked(wchar_t wc) { return fputwc_unlocked(wc, stdout); @@ -21,11 +20,9 @@ strong_alias(putwchar_unlocked,putwchar) #elif defined __UCLIBC_HAS_THREADS__ -/* psm: should this be fputwc? */ - wint_t putwchar(wchar_t wc) { - return fputc(wc, stdout); + return fputwc(wc, stdout); } #endif -- cgit v1.2.3