Call __sgetc() directly in getchar() instead of taking an expensive

detour through getc().
This commit is contained in:
Tim J. Robbins 2004-03-10 10:24:15 +00:00
parent 5c5c7982be
commit 2df1baf643

View File

@ -57,7 +57,7 @@ getchar()
int retval;
FLOCKFILE(stdin);
ORIENT(stdin, -1);
retval = getc(stdin);
retval = __sgetc(stdin);
FUNLOCKFILE(stdin);
return (retval);
}