Blame SOURCES/glibc-rh1505492-prototypes-3.patch

c6d234
commit 60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca
c6d234
Author: Joseph Myers <joseph@codesourcery.com>
c6d234
Date:   Sat Jun 8 00:22:23 2013 +0000
c6d234
c6d234
    Use (void) in no-arguments function definitions.
c6d234
c6d234
Conflicts:
c6d234
	resolv/compat-gethnamaddr.c
c6d234
c6d234
Changes were already port of the stub resolver rebase in
c6d234
glibc-rh677316-resolv.patch.
c6d234
c6d234
diff --git a/catgets/gencat.c b/catgets/gencat.c
c6d234
index 5078e3c8282cfa00..28dd8a5b05e5b0a0 100644
c6d234
--- a/catgets/gencat.c
c6d234
+++ b/catgets/gencat.c
c6d234
@@ -260,7 +260,7 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
c6d234
 /* The address of this function will be assigned to the hook in the
c6d234
    error functions.  */
c6d234
 static void
c6d234
-error_print ()
c6d234
+error_print (void)
c6d234
 {
c6d234
   /* We don't want the program name to be printed in messages.  Emacs'
c6d234
      compile.el does not like this.  */
c6d234
diff --git a/crypt/crypt_util.c b/crypt/crypt_util.c
c6d234
index e08dd8fa994a3ab1..1ae7711915822715 100644
c6d234
--- a/crypt/crypt_util.c
c6d234
+++ b/crypt/crypt_util.c
c6d234
@@ -554,7 +554,7 @@ small_tables_done:
c6d234
 }
c6d234
 
c6d234
 void
c6d234
-__init_des()
c6d234
+__init_des (void)
c6d234
 {
c6d234
   __init_des_r(&_ufc_foobar);
c6d234
 }
c6d234
diff --git a/crypt/speeds.c b/crypt/speeds.c
c6d234
index 7362391892aabe55..3afefb954216d8f2 100644
c6d234
--- a/crypt/speeds.c
c6d234
+++ b/crypt/speeds.c
c6d234
@@ -42,7 +42,7 @@ struct tms tstart, tfinish;
c6d234
 char *crypt(), *fcrypt();
c6d234
 
c6d234
 void
c6d234
-Stop ()
c6d234
+Stop (void)
c6d234
 {
c6d234
     double elapsed;
c6d234
 #ifdef NO_ITIMER
c6d234
@@ -76,7 +76,7 @@ static void clearmem(start, cnt)
c6d234
       *start++ = '\0';
c6d234
   }
c6d234
 
c6d234
-main ()
c6d234
+main (void)
c6d234
 {
c6d234
    char *s;
c6d234
 #ifdef NO_ITIMER
c6d234
diff --git a/hurd/hurdmalloc.c b/hurd/hurdmalloc.c
c6d234
index 886b40208da56866..da611653b602975f 100644
c6d234
--- a/hurd/hurdmalloc.c
c6d234
+++ b/hurd/hurdmalloc.c
c6d234
@@ -380,7 +380,7 @@ realloc(old_base, new_size)
c6d234
 
c6d234
 #ifdef	DEBUG
c6d234
 void
c6d234
-print_malloc_free_list()
c6d234
+print_malloc_free_list (void)
c6d234
 {
c6d234
   	int i, size;
c6d234
 	free_list_t fl;
c6d234
diff --git a/inet/ruserpass.c b/inet/ruserpass.c
c6d234
index 71a734dfdac934b7..f64ca3f1c12d478e 100644
c6d234
--- a/inet/ruserpass.c
c6d234
+++ b/inet/ruserpass.c
c6d234
@@ -289,7 +289,7 @@ bad:
c6d234
 libc_hidden_def (ruserpass)
c6d234
 
c6d234
 static int
c6d234
-token()
c6d234
+token (void)
c6d234
 {
c6d234
 	char *cp;
c6d234
 	int c;
c6d234
diff --git a/intl/finddomain.c b/intl/finddomain.c
c6d234
index fec3156985051234..4fff9dad5de54dad 100644
c6d234
--- a/intl/finddomain.c
c6d234
+++ b/intl/finddomain.c
c6d234
@@ -171,7 +171,7 @@ out:
c6d234
 /* This is called from iconv/gconv_db.c's free_mem, as locales must
c6d234
    be freed before freeing gconv steps arrays.  */
c6d234
 void __libc_freeres_fn_section
c6d234
-_nl_finddomain_subfreeres ()
c6d234
+_nl_finddomain_subfreeres (void)
c6d234
 {
c6d234
   struct loaded_l10nfile *runp = _nl_loaded_domains;
c6d234
 
c6d234
diff --git a/intl/localealias.c b/intl/localealias.c
c6d234
index 1341228716241ffe..2f067dfe2cd7a130 100644
c6d234
--- a/intl/localealias.c
c6d234
+++ b/intl/localealias.c
c6d234
@@ -362,7 +362,7 @@ out:
c6d234
 
c6d234
 
c6d234
 static int
c6d234
-extend_alias_table ()
c6d234
+extend_alias_table (void)
c6d234
 {
c6d234
   size_t new_size;
c6d234
   struct alias_map *new_map;
c6d234
diff --git a/intl/plural-exp.c b/intl/plural-exp.c
c6d234
index 2fa27bd7f3afca65..e157bba4adfca8df 100644
c6d234
--- a/intl/plural-exp.c
c6d234
+++ b/intl/plural-exp.c
c6d234
@@ -72,7 +72,7 @@ static struct expression plone;
c6d234
 struct expression GERMANIC_PLURAL;
c6d234
 
c6d234
 static void
c6d234
-init_germanic_plural ()
c6d234
+init_germanic_plural (void)
c6d234
 {
c6d234
   if (plone.val.num == 0)
c6d234
     {
c6d234
diff --git a/libio/fcloseall.c b/libio/fcloseall.c
c6d234
index 0864690a85504969..46184f6c4a7ad741 100644
c6d234
--- a/libio/fcloseall.c
c6d234
+++ b/libio/fcloseall.c
c6d234
@@ -28,7 +28,7 @@
c6d234
 #include <stdio.h>
c6d234
 
c6d234
 int
c6d234
-__fcloseall ()
c6d234
+__fcloseall (void)
c6d234
 {
c6d234
   /* Close all streams.  */
c6d234
   return _IO_cleanup ();
c6d234
diff --git a/libio/genops.c b/libio/genops.c
c6d234
index 02d7dfd02ac3ea7c..4e0a40f90c8223dd 100644
c6d234
--- a/libio/genops.c
c6d234
+++ b/libio/genops.c
c6d234
@@ -876,7 +876,7 @@ _IO_flush_all_lockp (int do_lock)
c6d234
 
c6d234
 
c6d234
 int
c6d234
-_IO_flush_all ()
c6d234
+_IO_flush_all (void)
c6d234
 {
c6d234
   /* We want locking.  */
c6d234
   return _IO_flush_all_lockp (1);
c6d234
@@ -884,7 +884,7 @@ _IO_flush_all ()
c6d234
 libc_hidden_def (_IO_flush_all)
c6d234
 
c6d234
 void
c6d234
-_IO_flush_all_linebuffered ()
c6d234
+_IO_flush_all_linebuffered (void)
c6d234
 {
c6d234
   struct _IO_FILE *fp;
c6d234
   int last_stamp;
c6d234
@@ -1009,7 +1009,7 @@ libc_freeres_fn (buffer_free)
c6d234
 
c6d234
 
c6d234
 int
c6d234
-_IO_cleanup ()
c6d234
+_IO_cleanup (void)
c6d234
 {
c6d234
   /* We do *not* want locking.  Some threads might use streams but
c6d234
      that is their problem, we flush them underneath them.  */
c6d234
@@ -1269,14 +1269,14 @@ _IO_default_imbue (fp, locale)
c6d234
 }
c6d234
 
c6d234
 _IO_ITER
c6d234
-_IO_iter_begin()
c6d234
+_IO_iter_begin (void)
c6d234
 {
c6d234
   return (_IO_ITER) _IO_list_all;
c6d234
 }
c6d234
 libc_hidden_def (_IO_iter_begin)
c6d234
 
c6d234
 _IO_ITER
c6d234
-_IO_iter_end()
c6d234
+_IO_iter_end (void)
c6d234
 {
c6d234
   return NULL;
c6d234
 }
c6d234
@@ -1299,7 +1299,7 @@ _IO_iter_file(iter)
c6d234
 libc_hidden_def (_IO_iter_file)
c6d234
 
c6d234
 void
c6d234
-_IO_list_lock()
c6d234
+_IO_list_lock (void)
c6d234
 {
c6d234
 #ifdef _IO_MTSAFE_IO
c6d234
   _IO_lock_lock (list_all_lock);
c6d234
@@ -1308,7 +1308,7 @@ _IO_list_lock()
c6d234
 libc_hidden_def (_IO_list_lock)
c6d234
 
c6d234
 void
c6d234
-_IO_list_unlock()
c6d234
+_IO_list_unlock (void)
c6d234
 {
c6d234
 #ifdef _IO_MTSAFE_IO
c6d234
   _IO_lock_unlock (list_all_lock);
c6d234
@@ -1317,7 +1317,7 @@ _IO_list_unlock()
c6d234
 libc_hidden_def (_IO_list_unlock)
c6d234
 
c6d234
 void
c6d234
-_IO_list_resetlock()
c6d234
+_IO_list_resetlock (void)
c6d234
 {
c6d234
 #ifdef _IO_MTSAFE_IO
c6d234
   _IO_lock_init (list_all_lock);
c6d234
diff --git a/libio/getchar.c b/libio/getchar.c
c6d234
index 3e35a0e524ef5236..d34398e69b9d42c2 100644
c6d234
--- a/libio/getchar.c
c6d234
+++ b/libio/getchar.c
c6d234
@@ -30,7 +30,7 @@
c6d234
 #undef getchar
c6d234
 
c6d234
 int
c6d234
-getchar ()
c6d234
+getchar (void)
c6d234
 {
c6d234
   int result;
c6d234
   _IO_acquire_lock (_IO_stdin);
c6d234
diff --git a/libio/getchar_u.c b/libio/getchar_u.c
c6d234
index de0d1498737bb36a..4821163a486c8474 100644
c6d234
--- a/libio/getchar_u.c
c6d234
+++ b/libio/getchar_u.c
c6d234
@@ -30,7 +30,7 @@
c6d234
 #undef getchar_unlocked
c6d234
 
c6d234
 int
c6d234
-getchar_unlocked ()
c6d234
+getchar_unlocked (void)
c6d234
 {
c6d234
   return _IO_getc_unlocked (_IO_stdin);
c6d234
 }
c6d234
diff --git a/libio/getwchar.c b/libio/getwchar.c
c6d234
index 8a9cb5cde21b5dfa..8344998f6fd2de65 100644
c6d234
--- a/libio/getwchar.c
c6d234
+++ b/libio/getwchar.c
c6d234
@@ -30,7 +30,7 @@
c6d234
 #undef getwchar
c6d234
 
c6d234
 wint_t
c6d234
-getwchar ()
c6d234
+getwchar (void)
c6d234
 {
c6d234
   wint_t result;
c6d234
   _IO_acquire_lock (_IO_stdin);
c6d234
diff --git a/libio/getwchar_u.c b/libio/getwchar_u.c
c6d234
index 4ac335b4fce84b7a..a395fd6e78309944 100644
c6d234
--- a/libio/getwchar_u.c
c6d234
+++ b/libio/getwchar_u.c
c6d234
@@ -30,7 +30,7 @@
c6d234
 #undef getwchar_unlocked
c6d234
 
c6d234
 wint_t
c6d234
-getwchar_unlocked ()
c6d234
+getwchar_unlocked (void)
c6d234
 {
c6d234
   return _IO_getwc_unlocked (_IO_stdin);
c6d234
 }
c6d234
diff --git a/libio/oldstdfiles.c b/libio/oldstdfiles.c
c6d234
index 5a67d73e27cc7e3b..870cb0536c52024f 100644
c6d234
--- a/libio/oldstdfiles.c
c6d234
+++ b/libio/oldstdfiles.c
c6d234
@@ -73,7 +73,7 @@ static void _IO_check_libio (void) __THROW __attribute__ ((constructor));
c6d234
    _IO_list_all accordingly. */
c6d234
 
c6d234
 static void
c6d234
-_IO_check_libio ()
c6d234
+_IO_check_libio (void)
c6d234
 {
c6d234
   if (&_IO_stdin_used == NULL)
c6d234
     {
c6d234
diff --git a/login/getpt.c b/login/getpt.c
c6d234
index 4b9b037b986de2cc..89293d8cdf8d9523 100644
c6d234
--- a/login/getpt.c
c6d234
+++ b/login/getpt.c
c6d234
@@ -22,7 +22,7 @@
c6d234
 /* Open the master side of a pseudoterminal and return its file
c6d234
    descriptor, or -1 on error. */
c6d234
 int
c6d234
-__getpt ()
c6d234
+__getpt (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/login/tst-utmp.c b/login/tst-utmp.c
c6d234
index cce79b4980ed4841..7cc39cb2b7ff2dba 100644
c6d234
--- a/login/tst-utmp.c
c6d234
+++ b/login/tst-utmp.c
c6d234
@@ -395,7 +395,7 @@ do_test (int argc, char *argv[])
c6d234
 
c6d234
 /* No field 'ut_type' in struct utmp.  */
c6d234
 int
c6d234
-main ()
c6d234
+main (void)
c6d234
 {
c6d234
   return 0;
c6d234
 }
c6d234
diff --git a/malloc/hooks.c b/malloc/hooks.c
c6d234
index a63668fdd07e89ef..e7bfb7e002b4fcdc 100644
c6d234
--- a/malloc/hooks.c
c6d234
+++ b/malloc/hooks.c
c6d234
@@ -69,7 +69,7 @@ static int disallow_malloc_check;
c6d234
 
c6d234
 /* Activate a standard set of debugging hooks. */
c6d234
 void
c6d234
-__malloc_check_init()
c6d234
+__malloc_check_init (void)
c6d234
 {
c6d234
   if (disallow_malloc_check) {
c6d234
     disallow_malloc_check = 0;
c6d234
diff --git a/malloc/malloc.c b/malloc/malloc.c
c6d234
index cad40661cd0a6b8a..fc86b344ee3b3a7c 100644
c6d234
--- a/malloc/malloc.c
c6d234
+++ b/malloc/malloc.c
c6d234
@@ -4708,7 +4708,7 @@ struct mallinfo __libc_mallinfo()
c6d234
 */
c6d234
 
c6d234
 void
c6d234
-__malloc_stats()
c6d234
+__malloc_stats (void)
c6d234
 {
c6d234
   int i;
c6d234
   mstate ar_ptr;
c6d234
diff --git a/malloc/mtrace.c b/malloc/mtrace.c
c6d234
index 0a26ccc65d81bd2a..34ec2a85b219882c 100644
c6d234
--- a/malloc/mtrace.c
c6d234
+++ b/malloc/mtrace.c
c6d234
@@ -72,7 +72,7 @@ static __ptr_t (*tr_old_memalign_hook) (size_t __alignment, size_t __size,
c6d234
 extern void tr_break (void) __THROW;
c6d234
 libc_hidden_proto (tr_break)
c6d234
 void
c6d234
-tr_break ()
c6d234
+tr_break (void)
c6d234
 {
c6d234
 }
c6d234
 libc_hidden_def (tr_break)
c6d234
@@ -293,7 +293,7 @@ release_libc_mem (void)
c6d234
    don't forget to set a breakpoint on tr_break!  */
c6d234
 
c6d234
 void
c6d234
-mtrace ()
c6d234
+mtrace (void)
c6d234
 {
c6d234
 #ifdef _LIBC
c6d234
   static int added_atexit_handler;
c6d234
@@ -358,7 +358,7 @@ mtrace ()
c6d234
 }
c6d234
 
c6d234
 void
c6d234
-muntrace ()
c6d234
+muntrace (void)
c6d234
 {
c6d234
   if (mallstream == NULL)
c6d234
     return;
c6d234
diff --git a/misc/fstab.c b/misc/fstab.c
c6d234
index d53845a9087771ec..86680466938ecc04 100644
c6d234
--- a/misc/fstab.c
c6d234
+++ b/misc/fstab.c
c6d234
@@ -96,7 +96,7 @@ getfsfile (name)
c6d234
 
c6d234
 
c6d234
 void
c6d234
-endfsent ()
c6d234
+endfsent (void)
c6d234
 {
c6d234
   struct fstab_state *state;
c6d234
 
c6d234
diff --git a/misc/getclktck.c b/misc/getclktck.c
c6d234
index fe8e1338b11f19b9..5f9918c0121c02e5 100644
c6d234
--- a/misc/getclktck.c
c6d234
+++ b/misc/getclktck.c
c6d234
@@ -19,7 +19,7 @@
c6d234
 
c6d234
 /* Return frequency of times().  */
c6d234
 int
c6d234
-__getclktck ()
c6d234
+__getclktck (void)
c6d234
 {
c6d234
 #ifdef	CLK_TCK
c6d234
   return CLK_TCK;
c6d234
diff --git a/misc/getdtsz.c b/misc/getdtsz.c
c6d234
index 7c6f7e633998daee..5c08127f82ee10dd 100644
c6d234
--- a/misc/getdtsz.c
c6d234
+++ b/misc/getdtsz.c
c6d234
@@ -21,7 +21,7 @@
c6d234
 /* Return the maximum number of file descriptors
c6d234
    the current process could possibly have.  */
c6d234
 int
c6d234
-__getdtablesize ()
c6d234
+__getdtablesize (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/misc/gethostid.c b/misc/gethostid.c
c6d234
index 876c83c691994d92..09e2e6bf76a55b41 100644
c6d234
--- a/misc/gethostid.c
c6d234
+++ b/misc/gethostid.c
c6d234
@@ -20,7 +20,7 @@
c6d234
 
c6d234
 /* Return the current machine's Internet number.  */
c6d234
 long int
c6d234
-gethostid ()
c6d234
+gethostid (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1L;
c6d234
diff --git a/misc/getpagesize.c b/misc/getpagesize.c
c6d234
index 6d3821aef1be0a45..1374a208511a47e3 100644
c6d234
--- a/misc/getpagesize.c
c6d234
+++ b/misc/getpagesize.c
c6d234
@@ -20,7 +20,7 @@
c6d234
 
c6d234
 /* Return the system page size.  */
c6d234
 int
c6d234
-__getpagesize ()
c6d234
+__getpagesize (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return 0;
c6d234
diff --git a/misc/getsysstats.c b/misc/getsysstats.c
c6d234
index c5ce2fdb9fec724a..9ad2ad22c32c7f10 100644
c6d234
--- a/misc/getsysstats.c
c6d234
+++ b/misc/getsysstats.c
c6d234
@@ -21,7 +21,7 @@
c6d234
 #include <sys/sysinfo.h>
c6d234
 
c6d234
 int
c6d234
-__get_nprocs_conf ()
c6d234
+__get_nprocs_conf (void)
c6d234
 {
c6d234
   /* We don't know how to determine the number.  Simply return always 1.  */
c6d234
   return 1;
c6d234
@@ -33,7 +33,7 @@ link_warning (get_nprocs_conf, "warning: get_nprocs_conf will always return 1")
c6d234
 
c6d234
 
c6d234
 int
c6d234
-__get_nprocs ()
c6d234
+__get_nprocs (void)
c6d234
 {
c6d234
   /* We don't know how to determine the number.  Simply return always 1.  */
c6d234
   return 1;
c6d234
@@ -44,7 +44,7 @@ link_warning (get_nprocs, "warning: get_nprocs will always return 1")
c6d234
 
c6d234
 
c6d234
 long int
c6d234
-__get_phys_pages ()
c6d234
+__get_phys_pages (void)
c6d234
 {
c6d234
   /* We have no general way to determine this value.  */
c6d234
   __set_errno (ENOSYS);
c6d234
@@ -56,7 +56,7 @@ stub_warning (get_phys_pages)
c6d234
 
c6d234
 
c6d234
 long int
c6d234
-__get_avphys_pages ()
c6d234
+__get_avphys_pages (void)
c6d234
 {
c6d234
   /* We have no general way to determine this value.  */
c6d234
   __set_errno (ENOSYS);
c6d234
diff --git a/misc/getttyent.c b/misc/getttyent.c
c6d234
index 18944e2b99150aea..864f65f523de2522 100644
c6d234
--- a/misc/getttyent.c
c6d234
+++ b/misc/getttyent.c
c6d234
@@ -61,7 +61,7 @@ static char *skip (char *) __THROW internal_function;
c6d234
 static char *value (char *) __THROW internal_function;
c6d234
 
c6d234
 struct ttyent *
c6d234
-getttyent()
c6d234
+getttyent (void)
c6d234
 {
c6d234
 	static struct ttyent tty;
c6d234
 	int c;
c6d234
@@ -184,7 +184,7 @@ value(p)
c6d234
 }
c6d234
 
c6d234
 int
c6d234
-setttyent()
c6d234
+setttyent (void)
c6d234
 {
c6d234
 
c6d234
 	if (tf) {
c6d234
@@ -200,7 +200,7 @@ setttyent()
c6d234
 libc_hidden_def (setttyent)
c6d234
 
c6d234
 int
c6d234
-endttyent()
c6d234
+endttyent (void)
c6d234
 {
c6d234
 	int rval;
c6d234
 
c6d234
diff --git a/misc/getusershell.c b/misc/getusershell.c
c6d234
index 677377c3f7fb9081..fc2c43b771439c08 100644
c6d234
--- a/misc/getusershell.c
c6d234
+++ b/misc/getusershell.c
c6d234
@@ -62,7 +62,7 @@ static char **initshells (void) __THROW;
c6d234
  * Get a list of shells from _PATH_SHELLS, if it exists.
c6d234
  */
c6d234
 char *
c6d234
-getusershell()
c6d234
+getusershell (void)
c6d234
 {
c6d234
 	char *ret;
c6d234
 
c6d234
@@ -75,7 +75,7 @@ getusershell()
c6d234
 }
c6d234
 
c6d234
 void
c6d234
-endusershell()
c6d234
+endusershell (void)
c6d234
 {
c6d234
 
c6d234
 	free(shells);
c6d234
@@ -86,14 +86,14 @@ endusershell()
c6d234
 }
c6d234
 
c6d234
 void
c6d234
-setusershell()
c6d234
+setusershell (void)
c6d234
 {
c6d234
 
c6d234
 	curshell = initshells();
c6d234
 }
c6d234
 
c6d234
 static char **
c6d234
-initshells()
c6d234
+initshells (void)
c6d234
 {
c6d234
 	char **sp, *cp;
c6d234
 	FILE *fp;
c6d234
diff --git a/misc/hsearch.c b/misc/hsearch.c
c6d234
index 928b192a5df9197c..26d12a96939f64d6 100644
c6d234
--- a/misc/hsearch.c
c6d234
+++ b/misc/hsearch.c
c6d234
@@ -45,7 +45,7 @@ hcreate (nel)
c6d234
 
c6d234
 
c6d234
 void
c6d234
-__hdestroy ()
c6d234
+__hdestroy (void)
c6d234
 {
c6d234
   hdestroy_r (&htab);
c6d234
 }
c6d234
diff --git a/misc/sync.c b/misc/sync.c
c6d234
index 01a1696ce2e1d5e5..d71d4334368d3e2e 100644
c6d234
--- a/misc/sync.c
c6d234
+++ b/misc/sync.c
c6d234
@@ -20,7 +20,7 @@
c6d234
 
c6d234
 /* Make all changes done to all files actually appear on disk.  */
c6d234
 void
c6d234
-sync ()
c6d234
+sync (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
 }
c6d234
diff --git a/misc/syslog.c b/misc/syslog.c
c6d234
index 4976e89b6ea56364..70daa9e1f3b7b745 100644
c6d234
--- a/misc/syslog.c
c6d234
+++ b/misc/syslog.c
c6d234
@@ -425,7 +425,7 @@ sigpipe_handler (int signo)
c6d234
 #endif
c6d234
 
c6d234
 static void
c6d234
-closelog_internal()
c6d234
+closelog_internal (void)
c6d234
 {
c6d234
   if (!connected)
c6d234
     return;
c6d234
@@ -436,7 +436,7 @@ closelog_internal()
c6d234
 }
c6d234
 
c6d234
 void
c6d234
-closelog ()
c6d234
+closelog (void)
c6d234
 {
c6d234
   /* Protect against multiple users and cancellation.  */
c6d234
   __libc_cleanup_push (cancel_handler, NULL);
c6d234
diff --git a/misc/ttyslot.c b/misc/ttyslot.c
c6d234
index 75ca6a2d42d2c79d..9c69589daee2b164 100644
c6d234
--- a/misc/ttyslot.c
c6d234
+++ b/misc/ttyslot.c
c6d234
@@ -38,7 +38,7 @@ static char sccsid[] = "@(#)ttyslot.c	8.1 (Berkeley) 6/4/93";
c6d234
 #include <unistd.h>
c6d234
 
c6d234
 int
c6d234
-ttyslot()
c6d234
+ttyslot (void)
c6d234
 {
c6d234
 	struct ttyent *ttyp;
c6d234
 	int slot;
c6d234
diff --git a/misc/vhangup.c b/misc/vhangup.c
c6d234
index 0d8ce287c999e08f..1f86262f9c9fcd56 100644
c6d234
--- a/misc/vhangup.c
c6d234
+++ b/misc/vhangup.c
c6d234
@@ -22,7 +22,7 @@
c6d234
    with the control terminal, and then send a SIGHUP signal to the process
c6d234
    group of the control terminal.  */
c6d234
 int
c6d234
-vhangup ()
c6d234
+vhangup (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/ports/sysdeps/unix/sysv/linux/ia64/getpagesize.c b/ports/sysdeps/unix/sysv/linux/ia64/getpagesize.c
c6d234
index ade9123a3a79d621..007cc09646352fdb 100644
c6d234
--- a/ports/sysdeps/unix/sysv/linux/ia64/getpagesize.c
c6d234
+++ b/ports/sysdeps/unix/sysv/linux/ia64/getpagesize.c
c6d234
@@ -29,7 +29,7 @@
c6d234
    as mmap and friends.  --davidm 99/11/30 */
c6d234
 
c6d234
 int
c6d234
-__getpagesize ()
c6d234
+__getpagesize (void)
c6d234
 {
c6d234
   assert (GLRO(dl_pagesize) != 0);
c6d234
   return GLRO(dl_pagesize);
c6d234
diff --git a/ports/sysdeps/unix/sysv/linux/m68k/getpagesize.c b/ports/sysdeps/unix/sysv/linux/m68k/getpagesize.c
c6d234
index 9e6000a196e3fe70..c50bc00a21a59020 100644
c6d234
--- a/ports/sysdeps/unix/sysv/linux/m68k/getpagesize.c
c6d234
+++ b/ports/sysdeps/unix/sysv/linux/m68k/getpagesize.c
c6d234
@@ -26,7 +26,7 @@
c6d234
 
c6d234
 /* Return the system page size.  */
c6d234
 int
c6d234
-__getpagesize ()
c6d234
+__getpagesize (void)
c6d234
 {
c6d234
 #ifdef __NR_getpagesize
c6d234
   int result;
c6d234
diff --git a/posix/fork.c b/posix/fork.c
c6d234
index 08c69b69bd9cbbe3..107b76e293c155ad 100644
c6d234
--- a/posix/fork.c
c6d234
+++ b/posix/fork.c
c6d234
@@ -23,7 +23,7 @@
c6d234
    Return -1 for errors, 0 to the new process,
c6d234
    and the process ID of the new process to the old process.  */
c6d234
 int
c6d234
-__fork ()
c6d234
+__fork (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/posix/getegid.c b/posix/getegid.c
c6d234
index 6692bc0837ec0066..1cffdc4e10b8e749 100644
c6d234
--- a/posix/getegid.c
c6d234
+++ b/posix/getegid.c
c6d234
@@ -20,7 +20,7 @@
c6d234
 
c6d234
 /* Get the effective group ID of the calling process.  */
c6d234
 __gid_t
c6d234
-__getegid ()
c6d234
+__getegid (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/posix/geteuid.c b/posix/geteuid.c
c6d234
index eb59db35d88d522a..9e2087babc4dc02c 100644
c6d234
--- a/posix/geteuid.c
c6d234
+++ b/posix/geteuid.c
c6d234
@@ -21,7 +21,7 @@
c6d234
 
c6d234
 /* Get the effective user ID of the calling process.  */
c6d234
 __uid_t
c6d234
-__geteuid ()
c6d234
+__geteuid (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/posix/getgid.c b/posix/getgid.c
c6d234
index 54c7d18705c971a5..464f03f9b2727d0d 100644
c6d234
--- a/posix/getgid.c
c6d234
+++ b/posix/getgid.c
c6d234
@@ -21,7 +21,7 @@
c6d234
 
c6d234
 /* Get the real group ID of the calling process.  */
c6d234
 gid_t
c6d234
-__getgid ()
c6d234
+__getgid (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/posix/getpid.c b/posix/getpid.c
c6d234
index 3c3bb6a2afe4d5c5..5b5f11b0c091fe0a 100644
c6d234
--- a/posix/getpid.c
c6d234
+++ b/posix/getpid.c
c6d234
@@ -20,7 +20,7 @@
c6d234
 
c6d234
 /* Get the process ID of the calling process.  */
c6d234
 int
c6d234
-__getpid ()
c6d234
+__getpid (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/posix/getppid.c b/posix/getppid.c
c6d234
index 92c8b9b6dfca4592..7e3baacce8b98140 100644
c6d234
--- a/posix/getppid.c
c6d234
+++ b/posix/getppid.c
c6d234
@@ -21,7 +21,7 @@
c6d234
 
c6d234
 /* Get the parent process ID of the calling process.  */
c6d234
 int
c6d234
-__getppid ()
c6d234
+__getppid (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/posix/getuid.c b/posix/getuid.c
c6d234
index 2afbe583fd76f520..c16a72a4ae5182cc 100644
c6d234
--- a/posix/getuid.c
c6d234
+++ b/posix/getuid.c
c6d234
@@ -21,7 +21,7 @@
c6d234
 
c6d234
 /* Get the real user ID of the calling process.  */
c6d234
 uid_t
c6d234
-__getuid ()
c6d234
+__getuid (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/posix/pause.c b/posix/pause.c
c6d234
index 095051002bb62799..6440f68562dc07b0 100644
c6d234
--- a/posix/pause.c
c6d234
+++ b/posix/pause.c
c6d234
@@ -23,7 +23,7 @@
c6d234
    This is supposed to always return -1 and set errno to EINTR,
c6d234
    but rules were meant to be broken.  */
c6d234
 int
c6d234
-pause ()
c6d234
+pause (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/posix/setpgrp.c b/posix/setpgrp.c
c6d234
index 3f89a3218e6089de..31ff59518a966340 100644
c6d234
--- a/posix/setpgrp.c
c6d234
+++ b/posix/setpgrp.c
c6d234
@@ -18,7 +18,7 @@
c6d234
 #include <unistd.h>
c6d234
 
c6d234
 int
c6d234
-setpgrp ()
c6d234
+setpgrp (void)
c6d234
 {
c6d234
   return __setpgid (0, 0);
c6d234
 }
c6d234
diff --git a/posix/setsid.c b/posix/setsid.c
c6d234
index a4f05254e136ba5e..5ccc2d6710dd7ac2 100644
c6d234
--- a/posix/setsid.c
c6d234
+++ b/posix/setsid.c
c6d234
@@ -23,7 +23,7 @@
c6d234
    The process group IDs of the session and the calling process
c6d234
    are set to the process ID of the calling process, which is returned.  */
c6d234
 int
c6d234
-__setsid ()
c6d234
+__setsid (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/posix/test-vfork.c b/posix/test-vfork.c
c6d234
index c4904e36e130d928..6dfb7d47e36a65eb 100644
c6d234
--- a/posix/test-vfork.c
c6d234
+++ b/posix/test-vfork.c
c6d234
@@ -37,6 +37,6 @@ main (void)
c6d234
 }
c6d234
 
c6d234
 void
c6d234
-noop ()
c6d234
+noop (void)
c6d234
 {
c6d234
 }
c6d234
diff --git a/stdlib/drand48.c b/stdlib/drand48.c
c6d234
index 9b54e4bc0db1eca1..d70e8ebaa0b611ad 100644
c6d234
--- a/stdlib/drand48.c
c6d234
+++ b/stdlib/drand48.c
c6d234
@@ -20,7 +20,7 @@
c6d234
 
c6d234
 
c6d234
 double
c6d234
-drand48 ()
c6d234
+drand48 (void)
c6d234
 {
c6d234
   double result;
c6d234
 
c6d234
diff --git a/stdlib/lrand48.c b/stdlib/lrand48.c
c6d234
index e38ce91dd2b46306..70db2ab852dbc09d 100644
c6d234
--- a/stdlib/lrand48.c
c6d234
+++ b/stdlib/lrand48.c
c6d234
@@ -20,7 +20,7 @@
c6d234
 
c6d234
 
c6d234
 long int
c6d234
-lrand48 ()
c6d234
+lrand48 (void)
c6d234
 {
c6d234
   long int result;
c6d234
 
c6d234
diff --git a/stdlib/mrand48.c b/stdlib/mrand48.c
c6d234
index 248781b767da3786..d2257bd542312ad8 100644
c6d234
--- a/stdlib/mrand48.c
c6d234
+++ b/stdlib/mrand48.c
c6d234
@@ -20,7 +20,7 @@
c6d234
 
c6d234
 
c6d234
 long int
c6d234
-mrand48 ()
c6d234
+mrand48 (void)
c6d234
 {
c6d234
   long int result;
c6d234
 
c6d234
diff --git a/stdlib/rand.c b/stdlib/rand.c
c6d234
index 92916e833f7fc94a..15b2a647dcaea6a4 100644
c6d234
--- a/stdlib/rand.c
c6d234
+++ b/stdlib/rand.c
c6d234
@@ -22,7 +22,7 @@
c6d234
 
c6d234
 /* Return a random integer between 0 and RAND_MAX.  */
c6d234
 int
c6d234
-rand ()
c6d234
+rand (void)
c6d234
 {
c6d234
   return (int) __random ();
c6d234
 }
c6d234
diff --git a/stdlib/random.c b/stdlib/random.c
c6d234
index ff6bdd2b5d5a8f76..537555c90098d426 100644
c6d234
--- a/stdlib/random.c
c6d234
+++ b/stdlib/random.c
c6d234
@@ -288,7 +288,7 @@ weak_alias (__setstate, setstate)
c6d234
    pointer if the front one has wrapped.  Returns a 31-bit random number.  */
c6d234
 
c6d234
 long int
c6d234
-__random ()
c6d234
+__random (void)
c6d234
 {
c6d234
   int32_t retval;
c6d234
 
c6d234
diff --git a/stdlib/setenv.c b/stdlib/setenv.c
c6d234
index 6185c69243464623..56b9bc67d93cbcc0 100644
c6d234
--- a/stdlib/setenv.c
c6d234
+++ b/stdlib/setenv.c
c6d234
@@ -349,7 +349,7 @@ unsetenv (name)
c6d234
    never made it.  Nevertheless the POSIX.9 standard (POSIX bindings
c6d234
    for Fortran 77) requires this function.  */
c6d234
 int
c6d234
-clearenv ()
c6d234
+clearenv (void)
c6d234
 {
c6d234
   LOCK;
c6d234
 
c6d234
diff --git a/sunrpc/clnt_tcp.c b/sunrpc/clnt_tcp.c
c6d234
index ec85930e44730415..b46905fb06eb2a49 100644
c6d234
--- a/sunrpc/clnt_tcp.c
c6d234
+++ b/sunrpc/clnt_tcp.c
c6d234
@@ -356,7 +356,7 @@ clnttcp_freeres (cl, xdr_res, res_ptr)
c6d234
 }
c6d234
 
c6d234
 static void
c6d234
-clnttcp_abort ()
c6d234
+clnttcp_abort (void)
c6d234
 {
c6d234
 }
c6d234
 
c6d234
diff --git a/sunrpc/clnt_unix.c b/sunrpc/clnt_unix.c
c6d234
index 9b5d7ca82256290b..2ad81972561aa6b0 100644
c6d234
--- a/sunrpc/clnt_unix.c
c6d234
+++ b/sunrpc/clnt_unix.c
c6d234
@@ -330,7 +330,7 @@ clntunix_freeres (cl, xdr_res, res_ptr)
c6d234
 }
c6d234
 
c6d234
 static void
c6d234
-clntunix_abort ()
c6d234
+clntunix_abort (void)
c6d234
 {
c6d234
 }
c6d234
 
c6d234
diff --git a/sysdeps/mach/getpagesize.c b/sysdeps/mach/getpagesize.c
c6d234
index a4c59715acdc46f9..7586ffd455ae8a6d 100644
c6d234
--- a/sysdeps/mach/getpagesize.c
c6d234
+++ b/sysdeps/mach/getpagesize.c
c6d234
@@ -20,7 +20,7 @@
c6d234
 
c6d234
 /* Return the system page size.  */
c6d234
 int
c6d234
-__getpagesize ()
c6d234
+__getpagesize (void)
c6d234
 {
c6d234
   return __vm_page_size;
c6d234
 }
c6d234
diff --git a/sysdeps/mach/getsysstats.c b/sysdeps/mach/getsysstats.c
c6d234
index 4820b35113aca031..8765004d9b48185d 100644
c6d234
--- a/sysdeps/mach/getsysstats.c
c6d234
+++ b/sysdeps/mach/getsysstats.c
c6d234
@@ -24,7 +24,7 @@
c6d234
 
c6d234
 /* Return the number of processors configured on the system. */
c6d234
 int
c6d234
-__get_nprocs_conf ()
c6d234
+__get_nprocs_conf (void)
c6d234
 {
c6d234
   struct host_basic_info hbi;
c6d234
   kern_return_t err;
c6d234
@@ -43,7 +43,7 @@ weak_alias (__get_nprocs_conf, get_nprocs_conf)
c6d234
 
c6d234
 /* Return the number of processors currently available on the system. */
c6d234
 int
c6d234
-__get_nprocs ()
c6d234
+__get_nprocs (void)
c6d234
 {
c6d234
   struct host_basic_info hbi;
c6d234
   kern_return_t err;
c6d234
@@ -62,7 +62,7 @@ weak_alias (__get_nprocs, get_nprocs)
c6d234
 
c6d234
 /* Return the number of physical pages on the system. */
c6d234
 long int
c6d234
-__get_phys_pages ()
c6d234
+__get_phys_pages (void)
c6d234
 {
c6d234
   struct host_basic_info hbi;
c6d234
   kern_return_t err;
c6d234
@@ -81,7 +81,7 @@ weak_alias (__get_phys_pages, get_phys_pages)
c6d234
 
c6d234
 /* Return the number of available physical pages */
c6d234
 long int
c6d234
-__get_avphys_pages ()
c6d234
+__get_avphys_pages (void)
c6d234
 {
c6d234
   vm_statistics_data_t vs;
c6d234
   kern_return_t err;
c6d234
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
c6d234
index 4eefe3af04f845c3..c3f31e2c8eb6bc2f 100644
c6d234
--- a/sysdeps/mach/hurd/dl-sysdep.c
c6d234
+++ b/sysdeps/mach/hurd/dl-sysdep.c
c6d234
@@ -554,7 +554,7 @@ __access (const char *file, int type)
c6d234
 }
c6d234
 
c6d234
 pid_t weak_function
c6d234
-__getpid ()
c6d234
+__getpid (void)
c6d234
 {
c6d234
   pid_t pid, ppid;
c6d234
   int orphaned;
c6d234
diff --git a/sysdeps/mach/hurd/getclktck.c b/sysdeps/mach/hurd/getclktck.c
c6d234
index 5ea4781c1b40cade..d3cebc17778a3633 100644
c6d234
--- a/sysdeps/mach/hurd/getclktck.c
c6d234
+++ b/sysdeps/mach/hurd/getclktck.c
c6d234
@@ -21,7 +21,7 @@
c6d234
 /* Return frequency of `times'.
c6d234
    Since Mach reports CPU times in microseconds, we always use 1 million.  */
c6d234
 int
c6d234
-__getclktck ()
c6d234
+__getclktck (void)
c6d234
 {
c6d234
   return 1000000;
c6d234
 }
c6d234
diff --git a/sysdeps/mach/hurd/getdtsz.c b/sysdeps/mach/hurd/getdtsz.c
c6d234
index 9c754a79041f31ec..527a0e3130cc52a3 100644
c6d234
--- a/sysdeps/mach/hurd/getdtsz.c
c6d234
+++ b/sysdeps/mach/hurd/getdtsz.c
c6d234
@@ -24,7 +24,7 @@
c6d234
 /* Return the maximum number of file descriptors the current process
c6d234
    could possibly have (until it raises the resource limit).  */
c6d234
 int
c6d234
-__getdtablesize ()
c6d234
+__getdtablesize (void)
c6d234
 {
c6d234
   rlim_t limit;
c6d234
 
c6d234
diff --git a/sysdeps/mach/hurd/getegid.c b/sysdeps/mach/hurd/getegid.c
c6d234
index cb1955356bba6304..8e63d640ca917688 100644
c6d234
--- a/sysdeps/mach/hurd/getegid.c
c6d234
+++ b/sysdeps/mach/hurd/getegid.c
c6d234
@@ -22,7 +22,7 @@
c6d234
 
c6d234
 /* Get the effective group ID of the calling process.  */
c6d234
 gid_t
c6d234
-__getegid ()
c6d234
+__getegid (void)
c6d234
 {
c6d234
   error_t err;
c6d234
   gid_t egid;
c6d234
diff --git a/sysdeps/mach/hurd/geteuid.c b/sysdeps/mach/hurd/geteuid.c
c6d234
index 4bcf6f56acedc2aa..5b5228958d9733a0 100644
c6d234
--- a/sysdeps/mach/hurd/geteuid.c
c6d234
+++ b/sysdeps/mach/hurd/geteuid.c
c6d234
@@ -22,7 +22,7 @@
c6d234
 
c6d234
 /* Get the effective user ID of the calling process.  */
c6d234
 uid_t
c6d234
-__geteuid ()
c6d234
+__geteuid (void)
c6d234
 {
c6d234
   error_t err;
c6d234
   uid_t euid;
c6d234
diff --git a/sysdeps/mach/hurd/getgid.c b/sysdeps/mach/hurd/getgid.c
c6d234
index a479ddf41429ecf2..0c297c392d69ee6d 100644
c6d234
--- a/sysdeps/mach/hurd/getgid.c
c6d234
+++ b/sysdeps/mach/hurd/getgid.c
c6d234
@@ -22,7 +22,7 @@
c6d234
 
c6d234
 /* Get the real group ID of the calling process.  */
c6d234
 gid_t
c6d234
-__getgid ()
c6d234
+__getgid (void)
c6d234
 {
c6d234
   error_t err;
c6d234
   gid_t gid;
c6d234
diff --git a/sysdeps/mach/hurd/gethostid.c b/sysdeps/mach/hurd/gethostid.c
c6d234
index 0a8bbbe1b9b4ee52..4265b9574e7d97c2 100644
c6d234
--- a/sysdeps/mach/hurd/gethostid.c
c6d234
+++ b/sysdeps/mach/hurd/gethostid.c
c6d234
@@ -21,7 +21,7 @@
c6d234
 
c6d234
 /* Return the current machine's Internet number.  */
c6d234
 long int
c6d234
-gethostid ()
c6d234
+gethostid (void)
c6d234
 {
c6d234
   /* The hostid is just the contents of the file /etc/hostid,
c6d234
      kept as text of hexadecimal digits.  */
c6d234
diff --git a/sysdeps/mach/hurd/getlogin.c b/sysdeps/mach/hurd/getlogin.c
c6d234
index 0f94c631a927ce68..83d1bfca649b70ef 100644
c6d234
--- a/sysdeps/mach/hurd/getlogin.c
c6d234
+++ b/sysdeps/mach/hurd/getlogin.c
c6d234
@@ -23,7 +23,7 @@
c6d234
 /* Return the login name of the user, or NULL if it can't be determined.
c6d234
    The returned pointer, if not NULL, is good only until the next call.  */
c6d234
 char *
c6d234
-getlogin ()
c6d234
+getlogin (void)
c6d234
 {
c6d234
   static char login[1024];	/* XXX */
c6d234
   error_t err;
c6d234
diff --git a/sysdeps/mach/hurd/getpid.c b/sysdeps/mach/hurd/getpid.c
c6d234
index 4698f3ce729f82b0..89c2dc138b90be5b 100644
c6d234
--- a/sysdeps/mach/hurd/getpid.c
c6d234
+++ b/sysdeps/mach/hurd/getpid.c
c6d234
@@ -21,7 +21,7 @@
c6d234
 
c6d234
 /* Get the process ID of the calling process.  */
c6d234
 pid_t
c6d234
-__getpid ()
c6d234
+__getpid (void)
c6d234
 {
c6d234
   /* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock.  */
c6d234
   return _hurd_pid;
c6d234
diff --git a/sysdeps/mach/hurd/getppid.c b/sysdeps/mach/hurd/getppid.c
c6d234
index a775b7a73e486cdc..4a8bca8d4a155197 100644
c6d234
--- a/sysdeps/mach/hurd/getppid.c
c6d234
+++ b/sysdeps/mach/hurd/getppid.c
c6d234
@@ -23,7 +23,7 @@
c6d234
 
c6d234
 /* Get the parent process ID of the calling process.  */
c6d234
 pid_t
c6d234
-__getppid ()
c6d234
+__getppid (void)
c6d234
 {
c6d234
   /* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock.  */
c6d234
   return _hurd_ppid;
c6d234
diff --git a/sysdeps/mach/hurd/getuid.c b/sysdeps/mach/hurd/getuid.c
c6d234
index b9feb903964b734e..e6d047a2bb281584 100644
c6d234
--- a/sysdeps/mach/hurd/getuid.c
c6d234
+++ b/sysdeps/mach/hurd/getuid.c
c6d234
@@ -22,7 +22,7 @@
c6d234
 
c6d234
 /* Get the real user ID of the calling process.  */
c6d234
 uid_t
c6d234
-__getuid ()
c6d234
+__getuid (void)
c6d234
 {
c6d234
   error_t err;
c6d234
   uid_t uid;
c6d234
diff --git a/sysdeps/mach/hurd/sync.c b/sysdeps/mach/hurd/sync.c
c6d234
index 4042cb1625b8dbfa..e97aed373c982e2c 100644
c6d234
--- a/sysdeps/mach/hurd/sync.c
c6d234
+++ b/sysdeps/mach/hurd/sync.c
c6d234
@@ -21,7 +21,7 @@
c6d234
 
c6d234
 /* Make all changes done to all files actually appear on disk.  */
c6d234
 void
c6d234
-sync ()
c6d234
+sync (void)
c6d234
 {
c6d234
   /* This is not actually synchronous; we don't wait.  */
c6d234
   error_t err = __USEPORT (CRDIR, __file_syncfs (port, 0, 1));
c6d234
diff --git a/sysdeps/posix/clock.c b/sysdeps/posix/clock.c
c6d234
index f670a35a6e5b2db1..78ee5806bf53293c 100644
c6d234
--- a/sysdeps/posix/clock.c
c6d234
+++ b/sysdeps/posix/clock.c
c6d234
@@ -20,7 +20,7 @@
c6d234
 
c6d234
 /* Return the time used by the program so far (user time + system time).  */
c6d234
 clock_t
c6d234
-clock ()
c6d234
+clock (void)
c6d234
 {
c6d234
   struct tms buf;
c6d234
 
c6d234
diff --git a/sysdeps/unix/bsd/setsid.c b/sysdeps/unix/bsd/setsid.c
c6d234
index dbad2711ce78ceda..ac8930eefa8b46e2 100644
c6d234
--- a/sysdeps/unix/bsd/setsid.c
c6d234
+++ b/sysdeps/unix/bsd/setsid.c
c6d234
@@ -25,7 +25,7 @@
c6d234
    The process group IDs of the session and the calling process
c6d234
    are set to the process ID of the calling process, which is returned.  */
c6d234
 int
c6d234
-__setsid ()
c6d234
+__setsid (void)
c6d234
 {
c6d234
   pid_t pid = getpid ();
c6d234
   int tty;
c6d234
diff --git a/sysdeps/unix/getpagesize.c b/sysdeps/unix/getpagesize.c
c6d234
index bcd5dca4aa634e0f..68d18ec47cdfb815 100644
c6d234
--- a/sysdeps/unix/getpagesize.c
c6d234
+++ b/sysdeps/unix/getpagesize.c
c6d234
@@ -20,7 +20,7 @@
c6d234
 
c6d234
 /* Return the system page size.  */
c6d234
 int
c6d234
-__getpagesize ()
c6d234
+__getpagesize (void)
c6d234
 {
c6d234
 #ifdef	EXEC_PAGESIZE
c6d234
   return EXEC_PAGESIZE;
c6d234
diff --git a/sysdeps/unix/sysv/linux/getclktck.c b/sysdeps/unix/sysv/linux/getclktck.c
c6d234
index 3866bf9aa56bb95a..a1e036ebeb0372b9 100644
c6d234
--- a/sysdeps/unix/sysv/linux/getclktck.c
c6d234
+++ b/sysdeps/unix/sysv/linux/getclktck.c
c6d234
@@ -25,7 +25,7 @@
c6d234
 
c6d234
 /* Return frequency of times().  */
c6d234
 int
c6d234
-__getclktck ()
c6d234
+__getclktck (void)
c6d234
 {
c6d234
   return GLRO(dl_clktck) ?: SYSTEM_CLK_TCK;
c6d234
 }
c6d234
diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c
c6d234
index 9441bb2f9b313c6d..c9f4b4cbcbad6bdb 100644
c6d234
--- a/sysdeps/unix/sysv/linux/gethostid.c
c6d234
+++ b/sysdeps/unix/sysv/linux/gethostid.c
c6d234
@@ -67,7 +67,7 @@ sethostid (id)
c6d234
 # include <netinet/in.h>
c6d234
 
c6d234
 long int
c6d234
-gethostid ()
c6d234
+gethostid (void)
c6d234
 {
c6d234
   char hostname[MAXHOSTNAMELEN + 1];
c6d234
   size_t buflen;
c6d234
diff --git a/sysdeps/unix/sysv/linux/getpagesize.c b/sysdeps/unix/sysv/linux/getpagesize.c
c6d234
index a09bda8c9a527aa3..420e97235118efd0 100644
c6d234
--- a/sysdeps/unix/sysv/linux/getpagesize.c
c6d234
+++ b/sysdeps/unix/sysv/linux/getpagesize.c
c6d234
@@ -25,7 +25,7 @@
c6d234
 
c6d234
 /* Return the system page size.  */
c6d234
 int
c6d234
-__getpagesize ()
c6d234
+__getpagesize (void)
c6d234
 {
c6d234
   assert (GLRO(dl_pagesize) != 0);
c6d234
   return GLRO(dl_pagesize);
c6d234
diff --git a/sysdeps/unix/sysv/linux/getsysstats.c b/sysdeps/unix/sysv/linux/getsysstats.c
c6d234
index 9082b1a7ab29a9f9..7478e735c6333104 100644
c6d234
--- a/sysdeps/unix/sysv/linux/getsysstats.c
c6d234
+++ b/sysdeps/unix/sysv/linux/getsysstats.c
c6d234
@@ -124,7 +124,7 @@ next_line (int fd, char *const buffer, char **cp, char **re,
c6d234
 
c6d234
 
c6d234
 int
c6d234
-__get_nprocs ()
c6d234
+__get_nprocs (void)
c6d234
 {
c6d234
   static int cached_result;
c6d234
   static time_t timestamp;
c6d234
@@ -234,7 +234,7 @@ weak_alias (__get_nprocs, get_nprocs)
c6d234
 /* On some architectures it is possible to distinguish between configured
c6d234
    and active cpus.  */
c6d234
 int
c6d234
-__get_nprocs_conf ()
c6d234
+__get_nprocs_conf (void)
c6d234
 {
c6d234
   /* XXX Here will come a test for the new system call.  */
c6d234
 
c6d234
@@ -333,7 +333,7 @@ phys_pages_info (const char *format)
c6d234
    But not all systems have support for the /proc filesystem.  If it
c6d234
    is not available we return -1 as an error signal.  */
c6d234
 long int
c6d234
-__get_phys_pages ()
c6d234
+__get_phys_pages (void)
c6d234
 {
c6d234
   /* XXX Here will come a test for the new system call.  */
c6d234
 
c6d234
@@ -354,7 +354,7 @@ weak_alias (__get_phys_pages, get_phys_pages)
c6d234
    But not all systems have support for the /proc filesystem.  If it
c6d234
    is not available we return -1 as an error signal.  */
c6d234
 long int
c6d234
-__get_avphys_pages ()
c6d234
+__get_avphys_pages (void)
c6d234
 {
c6d234
   /* XXX Here will come a test for the new system call.  */
c6d234
 
c6d234
diff --git a/time/clock.c b/time/clock.c
c6d234
index 2e10fd3e3aaa1561..918a97c4d3077fe4 100644
c6d234
--- a/time/clock.c
c6d234
+++ b/time/clock.c
c6d234
@@ -21,7 +21,7 @@
c6d234
 
c6d234
 /* Return the time used by the program so far (user time + system time).  */
c6d234
 clock_t
c6d234
-clock ()
c6d234
+clock (void)
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return (clock_t) -1;