From 2df1baf643a41348e4544eafee70dd249043831c Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Wed, 10 Mar 2004 10:24:15 +0000 Subject: [PATCH] Call __sgetc() directly in getchar() instead of taking an expensive detour through getc(). --- lib/libc/stdio/getchar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/stdio/getchar.c b/lib/libc/stdio/getchar.c index 5aa8024b607e..47f46a2a3a03 100644 --- a/lib/libc/stdio/getchar.c +++ b/lib/libc/stdio/getchar.c @@ -57,7 +57,7 @@ getchar() int retval; FLOCKFILE(stdin); ORIENT(stdin, -1); - retval = getc(stdin); + retval = __sgetc(stdin); FUNLOCKFILE(stdin); return (retval); }