summaryrefslogtreecommitdiff
path: root/libio/genops.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/genops.c')
-rw-r--r--libio/genops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/genops.c b/libio/genops.c
index f925b0d87b..81752e3ccc 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -41,8 +41,8 @@ _IO_un_link (fp)
{
if (fp->_flags & _IO_LINKED)
{
-#ifdef _IO_MTSAFE_IO
_IO_FILE **f;
+#ifdef _IO_MTSAFE_IO
_IO_lock_lock (list_all_lock);
#endif
for (f = &_IO_list_all; *f != NULL; f = &(*f)->_chain)