about summary refs log tree commit diff
path: root/libio/iovsscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iovsscanf.c')
-rw-r--r--libio/iovsscanf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libio/iovsscanf.c b/libio/iovsscanf.c
index 4a21cce4b0..c0c2ef0bf1 100644
--- a/libio/iovsscanf.c
+++ b/libio/iovsscanf.c
@@ -35,12 +35,12 @@ DEFUN(_IO_vsscanf, (string, format, args),
   _IO_lock_t lock;
   sf._sbf._f._lock = &lock;
 #endif
-  _IO_init((_IO_FILE*)&sf, 0);
-  _IO_JUMPS((_IO_FILE*)&sf) = &_IO_str_jumps;
-  _IO_str_init_static ((_IO_FILE*)&sf, (char*)string, 0, NULL);
+  _IO_init(&sf._sbf._f, 0);
+  _IO_JUMPS(&sf._sbf._f) = &_IO_str_jumps;
+  _IO_str_init_static (&sf._sbf._f, (char*)string, 0, NULL);
   _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, &sf);
-  _IO_flockfile ((_IO_FILE *) &sf);
-  ret = _IO_vfscanf((_IO_FILE*)&sf, format, args, NULL);
+  _IO_flockfile (&sf._sbf._f);
+  ret = _IO_vfscanf(&sf._sbf._f, format, args, NULL);
   _IO_cleanup_region_end (1);
   return ret;
 }