diff options
Diffstat (limited to 'libio/getchar.c')
-rw-r--r-- | libio/getchar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libio/getchar.c b/libio/getchar.c index fdc2ec3..80c297f 100644 --- a/libio/getchar.c +++ b/libio/getchar.c @@ -32,9 +32,10 @@ int getchar () { int result; - _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, stdin); + _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, + _IO_stdin); _IO_flockfile (_IO_stdin); - result = _IO_getc_unlocked (stdin); + result = _IO_getc_unlocked (_IO_stdin); _IO_funlockfile (_IO_stdin); _IO_cleanup_region_end (0); return result; |