about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-06-08 00:22:23 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-06-08 00:22:23 +0000
commit60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca (patch)
tree29d9258b64874c6c9838757a9c67ef62a6a0868c /libio
parent2e09a79ada1f6d92809a037d41895e3d9302ad59 (diff)
downloadglibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar.gz
glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar.xz
glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.zip
Use (void) in no-arguments function definitions.
Diffstat (limited to 'libio')
-rw-r--r--libio/fcloseall.c2
-rw-r--r--libio/genops.c16
-rw-r--r--libio/getchar.c2
-rw-r--r--libio/getchar_u.c2
-rw-r--r--libio/getwchar.c2
-rw-r--r--libio/getwchar_u.c2
-rw-r--r--libio/oldstdfiles.c2
7 files changed, 14 insertions, 14 deletions
diff --git a/libio/fcloseall.c b/libio/fcloseall.c
index e1b0049f6a..39c3be472d 100644
--- a/libio/fcloseall.c
+++ b/libio/fcloseall.c
@@ -28,7 +28,7 @@
 #include <stdio.h>
 
 int
-__fcloseall ()
+__fcloseall (void)
 {
   /* Close all streams.  */
   return _IO_cleanup ();
diff --git a/libio/genops.c b/libio/genops.c
index e5c5d5cafe..a5fe13758e 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -873,7 +873,7 @@ _IO_flush_all_lockp (int do_lock)
 
 
 int
-_IO_flush_all ()
+_IO_flush_all (void)
 {
   /* We want locking.  */
   return _IO_flush_all_lockp (1);
@@ -881,7 +881,7 @@ _IO_flush_all ()
 libc_hidden_def (_IO_flush_all)
 
 void
-_IO_flush_all_linebuffered ()
+_IO_flush_all_linebuffered (void)
 {
   struct _IO_FILE *fp;
   int last_stamp;
@@ -1006,7 +1006,7 @@ libc_freeres_fn (buffer_free)
 
 
 int
-_IO_cleanup ()
+_IO_cleanup (void)
 {
   /* We do *not* want locking.  Some threads might use streams but
      that is their problem, we flush them underneath them.  */
@@ -1266,14 +1266,14 @@ _IO_default_imbue (fp, locale)
 }
 
 _IO_ITER
-_IO_iter_begin()
+_IO_iter_begin (void)
 {
   return (_IO_ITER) _IO_list_all;
 }
 libc_hidden_def (_IO_iter_begin)
 
 _IO_ITER
-_IO_iter_end()
+_IO_iter_end (void)
 {
   return NULL;
 }
@@ -1296,7 +1296,7 @@ _IO_iter_file(iter)
 libc_hidden_def (_IO_iter_file)
 
 void
-_IO_list_lock()
+_IO_list_lock (void)
 {
 #ifdef _IO_MTSAFE_IO
   _IO_lock_lock (list_all_lock);
@@ -1305,7 +1305,7 @@ _IO_list_lock()
 libc_hidden_def (_IO_list_lock)
 
 void
-_IO_list_unlock()
+_IO_list_unlock (void)
 {
 #ifdef _IO_MTSAFE_IO
   _IO_lock_unlock (list_all_lock);
@@ -1314,7 +1314,7 @@ _IO_list_unlock()
 libc_hidden_def (_IO_list_unlock)
 
 void
-_IO_list_resetlock()
+_IO_list_resetlock (void)
 {
 #ifdef _IO_MTSAFE_IO
   _IO_lock_init (list_all_lock);
diff --git a/libio/getchar.c b/libio/getchar.c
index 4a415f7dff..17709bf451 100644
--- a/libio/getchar.c
+++ b/libio/getchar.c
@@ -30,7 +30,7 @@
 #undef getchar
 
 int
-getchar ()
+getchar (void)
 {
   int result;
   _IO_acquire_lock (_IO_stdin);
diff --git a/libio/getchar_u.c b/libio/getchar_u.c
index 9f22aa5299..c01d957154 100644
--- a/libio/getchar_u.c
+++ b/libio/getchar_u.c
@@ -30,7 +30,7 @@
 #undef getchar_unlocked
 
 int
-getchar_unlocked ()
+getchar_unlocked (void)
 {
   return _IO_getc_unlocked (_IO_stdin);
 }
diff --git a/libio/getwchar.c b/libio/getwchar.c
index b327c313a6..10844e2bdc 100644
--- a/libio/getwchar.c
+++ b/libio/getwchar.c
@@ -30,7 +30,7 @@
 #undef getwchar
 
 wint_t
-getwchar ()
+getwchar (void)
 {
   wint_t result;
   _IO_acquire_lock (_IO_stdin);
diff --git a/libio/getwchar_u.c b/libio/getwchar_u.c
index 77138ee33d..97bb244c66 100644
--- a/libio/getwchar_u.c
+++ b/libio/getwchar_u.c
@@ -30,7 +30,7 @@
 #undef getwchar_unlocked
 
 wint_t
-getwchar_unlocked ()
+getwchar_unlocked (void)
 {
   return _IO_getwc_unlocked (_IO_stdin);
 }
diff --git a/libio/oldstdfiles.c b/libio/oldstdfiles.c
index b0353d5552..b02c62d7f0 100644
--- a/libio/oldstdfiles.c
+++ b/libio/oldstdfiles.c
@@ -73,7 +73,7 @@ static void _IO_check_libio (void) __THROW __attribute__ ((constructor));
    _IO_list_all accordingly. */
 
 static void
-_IO_check_libio ()
+_IO_check_libio (void)
 {
   if (&_IO_stdin_used == NULL)
     {