about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/genops.c2
-rw-r--r--libio/getc_u.c3
2 files changed, 2 insertions, 3 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)
diff --git a/libio/getc_u.c b/libio/getc_u.c
index 5572ef6b3e..a722a315f2 100644
--- a/libio/getc_u.c
+++ b/libio/getc_u.c
@@ -29,8 +29,7 @@
 #undef getc_unlocked
 
 int
-__getc_unlocked (fp)
-     FILE *fp;
+__getc_unlocked (FILE *fp)
 {
   CHECK_FILE (fp, EOF);
   return _IO_getc_unlocked (fp);