summaryrefslogtreecommitdiff
path: root/libc/stdio/putwchar.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-14 23:11:32 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:24 +0200
commit6da1949cb5c4245cfb1fcee1efadb049904be26f (patch)
tree76d9cbe907b4337435aea67335ae431780d874c9 /libc/stdio/putwchar.c
parent0eb904a89cbd1b5fc61cd9fedbf737c55fcaa303 (diff)
use fputwc in putwchar()
use fputwc instead of fputc add hidden fputwc to avoid jump relocation Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/stdio/putwchar.c')
-rw-r--r--libc/stdio/putwchar.c5
1 files changed, 1 insertions, 4 deletions
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