summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/getchar.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-03-10 10:24:15 +0000
committertjr <tjr@FreeBSD.org>2004-03-10 10:24:15 +0000
commitd856ced836028978e833b71249b16453c7a76293 (patch)
treee7dfa857d996d12a7a561b83b97b09e016d1aa97 /lib/libc/stdio/getchar.c
parentbaa66583e1c8e69fbf430610db76636063ea5f80 (diff)
downloadFreeBSD-src-d856ced836028978e833b71249b16453c7a76293.zip
FreeBSD-src-d856ced836028978e833b71249b16453c7a76293.tar.gz
Call __sgetc() directly in getchar() instead of taking an expensive
detour through getc().
Diffstat (limited to 'lib/libc/stdio/getchar.c')
-rw-r--r--lib/libc/stdio/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/getchar.c b/lib/libc/stdio/getchar.c
index 5aa8024..47f46a2 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);
}
OpenPOWER on IntegriCloud