aboutsummaryrefslogtreecommitdiff
path: root/libio/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/getchar.c')
-rw-r--r--libio/getchar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libio/getchar.c b/libio/getchar.c
index fdc2ec3a87..80c297f0ae 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;