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

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