]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use (void) in no-arguments function definitions.
authorJoseph Myers <joseph@codesourcery.com>
Sat, 8 Jun 2013 00:22:23 +0000 (00:22 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Sat, 8 Jun 2013 00:22:23 +0000 (00:22 +0000)
81 files changed:
ChangeLog
catgets/gencat.c
crypt/crypt_util.c
crypt/speeds.c
hurd/hurdmalloc.c
inet/ruserpass.c
intl/finddomain.c
intl/localealias.c
intl/plural-exp.c
libio/fcloseall.c
libio/genops.c
libio/getchar.c
libio/getchar_u.c
libio/getwchar.c
libio/getwchar_u.c
libio/oldstdfiles.c
login/getpt.c
login/tst-utmp.c
malloc/hooks.c
malloc/malloc.c
malloc/mtrace.c
misc/fstab.c
misc/getclktck.c
misc/getdtsz.c
misc/gethostid.c
misc/getpagesize.c
misc/getsysstats.c
misc/getttyent.c
misc/getusershell.c
misc/hsearch.c
misc/sync.c
misc/syslog.c
misc/ttyslot.c
misc/vhangup.c
ports/ChangeLog.ia64
ports/ChangeLog.m68k
ports/sysdeps/unix/sysv/linux/ia64/getpagesize.c
ports/sysdeps/unix/sysv/linux/m68k/getpagesize.c
posix/fork.c
posix/getegid.c
posix/geteuid.c
posix/getgid.c
posix/getpid.c
posix/getppid.c
posix/getuid.c
posix/pause.c
posix/setpgrp.c
posix/setsid.c
posix/test-vfork.c
resolv/gethnamaddr.c
stdlib/drand48.c
stdlib/lrand48.c
stdlib/mrand48.c
stdlib/rand.c
stdlib/random.c
stdlib/setenv.c
sunrpc/clnt_tcp.c
sunrpc/clnt_unix.c
sysdeps/mach/getpagesize.c
sysdeps/mach/getsysstats.c
sysdeps/mach/hurd/dl-sysdep.c
sysdeps/mach/hurd/getclktck.c
sysdeps/mach/hurd/getdtsz.c
sysdeps/mach/hurd/getegid.c
sysdeps/mach/hurd/geteuid.c
sysdeps/mach/hurd/getgid.c
sysdeps/mach/hurd/gethostid.c
sysdeps/mach/hurd/getlogin.c
sysdeps/mach/hurd/getpid.c
sysdeps/mach/hurd/getppid.c
sysdeps/mach/hurd/getuid.c
sysdeps/mach/hurd/sync.c
sysdeps/posix/clock.c
sysdeps/unix/bsd/setsid.c
sysdeps/unix/getpagesize.c
sysdeps/unix/sysv/linux/getclktck.c
sysdeps/unix/sysv/linux/gethostid.c
sysdeps/unix/sysv/linux/getpagesize.c
sysdeps/unix/sysv/linux/getsysstats.c
time/clock.c
time/tzset.c

index 64374b032b98dcb46bfba8352f79d5b8a247f0c8..7bbc4c99c99581db49fbaf70cadceb92be2b05a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,112 @@
+2013-06-08  Joseph Myers  <joseph@codesourcery.com>
+
+       * catgets/gencat.c (error_print): Use (void) in function
+       definition.
+       * crypt/crypt_util.c (__init_des): Likewise.
+       * crypt/speeds.c (Stop): Likewise.
+       (main): Likewise.
+       * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
+       * inet/ruserpass.c (token): Likewise.
+       * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
+       * intl/localealias.c (extend_alias_table): Likewise.
+       * intl/plural-exp.c (init_germanic_plural): Likewise.
+       * libio/fcloseall.c (__fcloseall): Likewise.
+       * libio/genops.c (_IO_flush_all): Likewise.
+       (_IO_flush_all_linebuffered): Likewise.
+       (_IO_cleanup): Likewise.
+       (_IO_iter_begin): Likewise.
+       (_IO_iter_end): Likewise.
+       (_IO_list_lock): Likewise.
+       (_IO_list_unlock): Likewise.
+       (_IO_list_resetlock): Likewise.
+       * libio/getchar.c (getchar): Likewise.
+       * libio/getchar_u.c (getchar_unlocked): Likewise.
+       * libio/getwchar.c (getwchar): Likewise.
+       * libio/getwchar_u.c (getwchar_unlocked): Likewise.
+       * libio/oldstdfiles.c (_IO_check_libio): Likewise.
+       * login/getpt.c (__getpt): Likewise.
+       * login/tst-utmp.c (main): Likewise.
+       * malloc/hooks.c (__malloc_check_init): Likewise.
+       * malloc/malloc.c (__malloc_stats): Likewise.
+       * malloc/mtrace.c (tr_break): Likewise.
+       (mtrace): Likewise.
+       (muntrace): Likewise.
+       * misc/fstab.c (endfsent): Likewise.
+       * misc/getclktck.c (__getclktck): Likewise.
+       * misc/getdtsz.c (__getdtablesize): Likewise.
+       * misc/gethostid.c (gethostid): Likewise.
+       * misc/getpagesize.c (__getpagesize): Likewise.
+       * misc/getsysstats.c (__get_nprocs_conf): Likewise.
+       (__get_nprocs): Likewise.
+       (__get_phys_pages): Likewise.
+       (__get_avphys_pages): Likewise.
+       * misc/getttyent.c (getttyent): Likewise.
+       (setttyent): Likewise.
+       (endttyent): Likewise.
+       * misc/getusershell.c (getusershell): Likewise.
+       (endusershell): Likewise.
+       (setusershell): Likewise.
+       (initshells): Likewise.
+       * misc/hsearch.c (__hdestroy): Likewise.
+       * misc/sync.c (sync): Likewise.
+       * misc/syslog.c (closelog_internal): Likewise.
+       (closelog): Likewise.
+       * misc/ttyslot.c (ttyslot): Likewise.
+       * misc/vhangup.c (vhangup): Likewise.
+       * posix/fork.c (__fork): Likewise.
+       * posix/getegid.c (__getegid): Likewise.
+       * posix/geteuid.c (__geteuid): Likewise.
+       * posix/getgid.c (__getgid): Likewise.
+       * posix/getpid.c (__getpid): Likewise.
+       * posix/getppid.c (__getppid): Likewise.
+       * posix/getuid.c (__getuid): Likewise.
+       * posix/pause.c (pause): Likewise.
+       * posix/setpgrp.c (setpgrp): Likewise.
+       * posix/setsid.c (__setsid): Likewise.
+       * posix/test-vfork.c (noop): Likewise.
+       * resolv/gethnamaddr.c (_endhtent): Likewise.
+       (_gethtent): Likewise.
+       (ht_endhostent): Likewise.
+       (gethostent): Likewise.
+       (dns_service): Likewise.
+       * stdlib/drand48.c (drand48): Likewise.
+       * stdlib/lrand48.c (lrand48): Likewise.
+       * stdlib/mrand48.c (mrand48): Likewise.
+       * stdlib/rand.c (rand): Likewise.
+       * stdlib/random.c (__random): Likewise.
+       * stdlib/setenv.c (clearenv): Likewise.
+       * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
+       * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
+       * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
+       * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
+       (__get_nprocs): Likewise.
+       (__get_phys_pages): Likewise.
+       (__get_avphys_pages): Likewise.
+       * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
+       * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
+       * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
+       * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
+       * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
+       * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
+       * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
+       * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
+       * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
+       * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
+       * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
+       * sysdeps/mach/hurd/sync.c (sync): Likewise.
+       * sysdeps/posix/clock.c (clock): Likewise.
+       * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
+       * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
+       * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
+       * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
+       * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
+       * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
+       (__get_nprocs_conf): Likewise.
+       (__get_phys_pages): Likewise.
+       (__get_avphys_pages): Likewise.
+       * time/clock.c (clock): Likewise.
+       * time/tzset.c (__tzname_max): Likewise.
+
 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
 
        * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
index ae0a643ac0a5b21c4042641394ccc236b476d44f..b11583dfa1a4915b61511431d073548572204550 100644 (file)
@@ -254,7 +254,7 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
 /* The address of this function will be assigned to the hook in the
    error functions.  */
 static void
-error_print ()
+error_print (void)
 {
   /* We don't want the program name to be printed in messages.  Emacs'
      compile.el does not like this.  */
index 99ad321b3883023dac5df7e702c73d2f0889be69..240907989423e0e6b89635a6c98e55bd3ead76e7 100644 (file)
@@ -553,7 +553,7 @@ small_tables_done:
 }
 
 void
-__init_des()
+__init_des (void)
 {
   __init_des_r(&_ufc_foobar);
 }
index 6043eab12935009d8bfcbd80b22e92ed17a34689..0d55ae83be249dd00b5d862259760621a2ba90f7 100644 (file)
@@ -42,7 +42,7 @@ struct tms tstart, tfinish;
 char *crypt(), *fcrypt();
 
 void
-Stop ()
+Stop (void)
 {
     double elapsed;
 #ifdef NO_ITIMER
@@ -76,7 +76,7 @@ static void clearmem(start, cnt)
       *start++ = '\0';
   }
 
-main ()
+main (void)
 {
    char *s;
 #ifdef NO_ITIMER
index 0b48c08b04287bd2b69434cfe2761c10d0f5fad0..071abeb718f01c36fac412e3a1aec823925dc0a0 100644 (file)
@@ -380,7 +380,7 @@ realloc(old_base, new_size)
 
 #ifdef DEBUG
 void
-print_malloc_free_list()
+print_malloc_free_list (void)
 {
        int i, size;
        free_list_t fl;
index 6898d8f47c69672cf45c682cb34ffaa05c5994e5..2669a885b0e8e83a103aceb4e2d94ae0a1c83a41 100644 (file)
@@ -289,7 +289,7 @@ bad:
 libc_hidden_def (ruserpass)
 
 static int
-token()
+token (void)
 {
        char *cp;
        int c;
index b07d890050740524db2f88977e577aa13fc67e40..5d4c238d20dbf63b4648d66d018e42563964e1f8 100644 (file)
@@ -170,7 +170,7 @@ out:
 /* This is called from iconv/gconv_db.c's free_mem, as locales must
    be freed before freeing gconv steps arrays.  */
 void __libc_freeres_fn_section
-_nl_finddomain_subfreeres ()
+_nl_finddomain_subfreeres (void)
 {
   struct loaded_l10nfile *runp = _nl_loaded_domains;
 
index 478e5c45a64a5dc472efca3583bc38990a689d22..ee71eaf45dd404dd2ff3a00498fb44ed9e557918 100644 (file)
@@ -362,7 +362,7 @@ out:
 
 
 static int
-extend_alias_table ()
+extend_alias_table (void)
 {
   size_t new_size;
   struct alias_map *new_map;
index 156a181650bea6373e8100bc91f6eea0c6ac9d8c..a2d23efc9357b8116b2eadc59be0939099fca03e 100644 (file)
@@ -72,7 +72,7 @@ static struct expression plone;
 struct expression GERMANIC_PLURAL;
 
 static void
-init_germanic_plural ()
+init_germanic_plural (void)
 {
   if (plone.val.num == 0)
     {
index e1b0049f6a58fa9135d8638bf005e087e32492bb..39c3be472dd75b65189246a4efdede2191dd2e97 100644 (file)
@@ -28,7 +28,7 @@
 #include <stdio.h>
 
 int
-__fcloseall ()
+__fcloseall (void)
 {
   /* Close all streams.  */
   return _IO_cleanup ();
index e5c5d5cafe62b57a9a762365d2ec6b7ed8da3134..a5fe13758e35e519a4d3126c11a9ce6cb81d9886 100644 (file)
@@ -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);
index 4a415f7dff792d3ffe1322cd3046f47b80a1353d..17709bf4510f25a57ed104e0b1f913c15206443b 100644 (file)
@@ -30,7 +30,7 @@
 #undef getchar
 
 int
-getchar ()
+getchar (void)
 {
   int result;
   _IO_acquire_lock (_IO_stdin);
index 9f22aa529963cb932f58219440c1df96b7128eb5..c01d957154fd14f1adf4d91d4fad0c7250844b5f 100644 (file)
@@ -30,7 +30,7 @@
 #undef getchar_unlocked
 
 int
-getchar_unlocked ()
+getchar_unlocked (void)
 {
   return _IO_getc_unlocked (_IO_stdin);
 }
index b327c313a6e8751741b6be2eff2e580a4d072bbc..10844e2bdc68fb4ed81058286be7d63543571197 100644 (file)
@@ -30,7 +30,7 @@
 #undef getwchar
 
 wint_t
-getwchar ()
+getwchar (void)
 {
   wint_t result;
   _IO_acquire_lock (_IO_stdin);
index 77138ee33dff68b1a15ec3a488981b7b2adce5ed..97bb244c6660b9aa3eaa246b65287d3cbb6ce61b 100644 (file)
@@ -30,7 +30,7 @@
 #undef getwchar_unlocked
 
 wint_t
-getwchar_unlocked ()
+getwchar_unlocked (void)
 {
   return _IO_getwc_unlocked (_IO_stdin);
 }
index b0353d555200c91a25f9fc8a47333b74b2d96d48..b02c62d7f06dccf483b5e88c26a5da5dc5ad02fd 100644 (file)
@@ -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)
     {
index d36e83684eb2e270e18eba3ff06c58e4711f6772..813e7acd107b2de6ac00eae8756d5a8e25117c50 100644 (file)
@@ -22,7 +22,7 @@
 /* Open the master side of a pseudoterminal and return its file
    descriptor, or -1 on error. */
 int
-__getpt ()
+__getpt (void)
 {
   __set_errno (ENOSYS);
   return -1;
index 573d4a92c1cde2ad8faab88e89f92ac1c741e88e..a61b54305e7ae5c5bdce0b79039dd366e6df153b 100644 (file)
@@ -395,7 +395,7 @@ do_test (int argc, char *argv[])
 
 /* No field 'ut_type' in struct utmp.  */
 int
-main ()
+main (void)
 {
   return 0;
 }
index 8e4a6ed03377b1f74610be56824b2122bc6d3b57..8c25846330ae2723ff6ecbc71407840a298758b2 100644 (file)
@@ -69,7 +69,7 @@ static int disallow_malloc_check;
 
 /* Activate a standard set of debugging hooks. */
 void
-__malloc_check_init()
+__malloc_check_init (void)
 {
   if (disallow_malloc_check) {
     disallow_malloc_check = 0;
index 70b9329cc3c38b6190baa707dc2daeefec32c982..be472b2ba3885b194f55c29474c4ad5d6a61b729 100644 (file)
@@ -4602,7 +4602,7 @@ struct mallinfo __libc_mallinfo()
 */
 
 void
-__malloc_stats()
+__malloc_stats (void)
 {
   int i;
   mstate ar_ptr;
index 62867b11822049ce78cecce21a0a4ec077ea4277..ee941333a8799a202a9f126911519f6f00c58904 100644 (file)
@@ -72,7 +72,7 @@ static __ptr_t (*tr_old_memalign_hook) (size_t __alignment, size_t __size,
 extern void tr_break (void) __THROW;
 libc_hidden_proto (tr_break)
 void
-tr_break ()
+tr_break (void)
 {
 }
 libc_hidden_def (tr_break)
@@ -298,7 +298,7 @@ release_libc_mem (void)
    don't forget to set a breakpoint on tr_break!  */
 
 void
-mtrace ()
+mtrace (void)
 {
 #ifdef _LIBC
   static int added_atexit_handler;
@@ -363,7 +363,7 @@ mtrace ()
 }
 
 void
-muntrace ()
+muntrace (void)
 {
   if (mallstream == NULL)
     return;
index 0e2d86bd059c0f95da93c6ee69c4cea52f0bf061..6172bcba3e901352da91d7702b978f42aebee475 100644 (file)
@@ -95,7 +95,7 @@ getfsfile (name)
 
 
 void
-endfsent ()
+endfsent (void)
 {
   struct fstab_state *state;
 
index 8975ea5726150544da524c7e6b5b050e458cea63..ce90baa97178193b5d4d24318198becbcf5d0c82 100644 (file)
@@ -19,7 +19,7 @@
 
 /* Return frequency of times().  */
 int
-__getclktck ()
+__getclktck (void)
 {
 #ifdef CLK_TCK
   return CLK_TCK;
index 3aa9eeffd978651d6928bbddb478034b269b8ef7..25cf14abe2235ba706fd4ac8cff38f5326d2b6b2 100644 (file)
@@ -21,7 +21,7 @@
 /* Return the maximum number of file descriptors
    the current process could possibly have.  */
 int
-__getdtablesize ()
+__getdtablesize (void)
 {
   __set_errno (ENOSYS);
   return -1;
index 44636f5857822c83404c4887dba149ad5ad7ab93..ce8fd2c579b25363a0e45db80cd013967438809b 100644 (file)
@@ -20,7 +20,7 @@
 
 /* Return the current machine's Internet number.  */
 long int
-gethostid ()
+gethostid (void)
 {
   __set_errno (ENOSYS);
   return -1L;
index 93035a72137d3a48043219012e675c8a85fa42c9..43e00a899c4e8b1ef86a7efb6110fc74a0b14426 100644 (file)
@@ -20,7 +20,7 @@
 
 /* Return the system page size.  */
 int
-__getpagesize ()
+__getpagesize (void)
 {
   __set_errno (ENOSYS);
   return 0;
index 83b07cafec38f991c74f4d393d219fe0ab028893..d6f9df59d2b16cdf7af60b63fe3cb88d2c44ff1d 100644 (file)
@@ -21,7 +21,7 @@
 #include <sys/sysinfo.h>
 
 int
-__get_nprocs_conf ()
+__get_nprocs_conf (void)
 {
   /* We don't know how to determine the number.  Simply return always 1.  */
   return 1;
@@ -33,7 +33,7 @@ link_warning (get_nprocs_conf, "warning: get_nprocs_conf will always return 1")
 
 
 int
-__get_nprocs ()
+__get_nprocs (void)
 {
   /* We don't know how to determine the number.  Simply return always 1.  */
   return 1;
@@ -44,7 +44,7 @@ link_warning (get_nprocs, "warning: get_nprocs will always return 1")
 
 
 long int
-__get_phys_pages ()
+__get_phys_pages (void)
 {
   /* We have no general way to determine this value.  */
   __set_errno (ENOSYS);
@@ -56,7 +56,7 @@ stub_warning (get_phys_pages)
 
 
 long int
-__get_avphys_pages ()
+__get_avphys_pages (void)
 {
   /* We have no general way to determine this value.  */
   __set_errno (ENOSYS);
index 18944e2b99150aead026a321756b3aef327ee287..864f65f523de2522be2da5379be52fbcb5634888 100644 (file)
@@ -61,7 +61,7 @@ static char *skip (char *) __THROW internal_function;
 static char *value (char *) __THROW internal_function;
 
 struct ttyent *
-getttyent()
+getttyent (void)
 {
        static struct ttyent tty;
        int c;
@@ -184,7 +184,7 @@ value(p)
 }
 
 int
-setttyent()
+setttyent (void)
 {
 
        if (tf) {
@@ -200,7 +200,7 @@ setttyent()
 libc_hidden_def (setttyent)
 
 int
-endttyent()
+endttyent (void)
 {
        int rval;
 
index 677377c3f7fb9081ad98402b9bc01087821e0a88..fc2c43b771439c08119d5402b283c2b63629ad08 100644 (file)
@@ -62,7 +62,7 @@ static char **initshells (void) __THROW;
  * Get a list of shells from _PATH_SHELLS, if it exists.
  */
 char *
-getusershell()
+getusershell (void)
 {
        char *ret;
 
@@ -75,7 +75,7 @@ getusershell()
 }
 
 void
-endusershell()
+endusershell (void)
 {
 
        free(shells);
@@ -86,14 +86,14 @@ endusershell()
 }
 
 void
-setusershell()
+setusershell (void)
 {
 
        curshell = initshells();
 }
 
 static char **
-initshells()
+initshells (void)
 {
        char **sp, *cp;
        FILE *fp;
index 96684c308073b39a8971d76a9bb24902b75bc944..58b5d393f46a9899852ec5c1bfcbbf045f0565e1 100644 (file)
@@ -45,7 +45,7 @@ hcreate (nel)
 
 
 void
-__hdestroy ()
+__hdestroy (void)
 {
   hdestroy_r (&htab);
 }
index 1b663422b58c95928a6601d51137588d4319b305..0b18e725311ef67fe63d8184acbc351f96da6394 100644 (file)
@@ -20,7 +20,7 @@
 
 /* Make all changes done to all files actually appear on disk.  */
 void
-sync ()
+sync (void)
 {
   __set_errno (ENOSYS);
 }
index 4976e89b6ea563641e0a5bfba73810c5653bb05b..70daa9e1f3b7b74534ee2c269a3a1f563d8335ab 100644 (file)
@@ -425,7 +425,7 @@ sigpipe_handler (int signo)
 #endif
 
 static void
-closelog_internal()
+closelog_internal (void)
 {
   if (!connected)
     return;
@@ -436,7 +436,7 @@ closelog_internal()
 }
 
 void
-closelog ()
+closelog (void)
 {
   /* Protect against multiple users and cancellation.  */
   __libc_cleanup_push (cancel_handler, NULL);
index 75ca6a2d42d2c79d1733a91d81d2d398c891bd8e..9c69589daee2b16462d57b81675c6e78f4e45407 100644 (file)
@@ -38,7 +38,7 @@ static char sccsid[] = "@(#)ttyslot.c 8.1 (Berkeley) 6/4/93";
 #include <unistd.h>
 
 int
-ttyslot()
+ttyslot (void)
 {
        struct ttyent *ttyp;
        int slot;
index a8571f7c56e56cab3e6eea4fd07ee73bb5ab8722..afee526f399d95c4970bb3a75e2b0c5afc8a3626 100644 (file)
@@ -22,7 +22,7 @@
    with the control terminal, and then send a SIGHUP signal to the process
    group of the control terminal.  */
 int
-vhangup ()
+vhangup (void)
 {
   __set_errno (ENOSYS);
   return -1;
index 09cb121fa128b4e521432b6ad0b0e1df73042450..7f9fd3c36e69f01f1169ed2e505c89ad1966a571 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-08  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize): Use
+       (void) in function definition.
+
 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/ia64/bits/byteswap-16.h [__GNUC__ && __GNUC__ >= 2]
index e7ddd463d0e681334457670525d79a4bf02ee0cd..2cd6a6a06b2e5e7ac496c3a8169cf3a759821979 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-08  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize): Use
+       (void) in function definition.
+
 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/m68k/socket.S: Remove trailing
index da8242351dc95c97d6287ab9aa519eecd600f460..8c2a60bc731e53b27fbf01cf59e79c1f50245c1b 100644 (file)
@@ -29,7 +29,7 @@
    as mmap and friends.  --davidm 99/11/30 */
 
 int
-__getpagesize ()
+__getpagesize (void)
 {
   assert (GLRO(dl_pagesize) != 0);
   return GLRO(dl_pagesize);
index aa11d1a80e24d0d1568293c47ce6e62093d65238..47527700b6b9ecddc5b7c12fe67e32b4678fd848 100644 (file)
@@ -26,7 +26,7 @@
 
 /* Return the system page size.  */
 int
-__getpagesize ()
+__getpagesize (void)
 {
 #ifdef __NR_getpagesize
   int result;
index 01b5279199299c5a77386e7284a8558a5b792a71..4946a40b8b7789727674509471c6ea62e0dcc7de 100644 (file)
@@ -23,7 +23,7 @@
    Return -1 for errors, 0 to the new process,
    and the process ID of the new process to the old process.  */
 int
-__fork ()
+__fork (void)
 {
   __set_errno (ENOSYS);
   return -1;
index e8f09f579031632bd28242bfee037002a9a14d37..c14cc609713ff79f04da7ed7a16a6cc4d6958003 100644 (file)
@@ -20,7 +20,7 @@
 
 /* Get the effective group ID of the calling process.  */
 __gid_t
-__getegid ()
+__getegid (void)
 {
   __set_errno (ENOSYS);
   return -1;
index 566db40b0dd6def27dfc4c15f1bf61f6b03a28f0..c7af13f81efe1240537d063f7cdee4e25a69988f 100644 (file)
@@ -21,7 +21,7 @@
 
 /* Get the effective user ID of the calling process.  */
 __uid_t
-__geteuid ()
+__geteuid (void)
 {
   __set_errno (ENOSYS);
   return -1;
index 14f9dc6b0e571e60686165e0a19df510cda2e36c..719f8fb46b5e4ea4847a17fc2ac0eb216b506822 100644 (file)
@@ -21,7 +21,7 @@
 
 /* Get the real group ID of the calling process.  */
 gid_t
-__getgid ()
+__getgid (void)
 {
   __set_errno (ENOSYS);
   return -1;
index 4a64f57fa29adf8dcbfbb1e1b7510306ea6bb410..11a1865759ee33019269d5134aee26b088f899a4 100644 (file)
@@ -20,7 +20,7 @@
 
 /* Get the process ID of the calling process.  */
 int
-__getpid ()
+__getpid (void)
 {
   __set_errno (ENOSYS);
   return -1;
index e6dfcbb605a724e6b5da80187fce637b4adba3fc..c32032436e7a7f3bbd4fd66ca5fd09d68f21c4de 100644 (file)
@@ -21,7 +21,7 @@
 
 /* Get the parent process ID of the calling process.  */
 int
-__getppid ()
+__getppid (void)
 {
   __set_errno (ENOSYS);
   return -1;
index ba81a80f65e866cd4985acb628143098a9b5d223..19ad29626e884b8f0dc7b95b6699e47c439c4998 100644 (file)
@@ -21,7 +21,7 @@
 
 /* Get the real user ID of the calling process.  */
 uid_t
-__getuid ()
+__getuid (void)
 {
   __set_errno (ENOSYS);
   return -1;
index 81b583b545e9782f7fc0344b8f0bd0641f4f33c4..19eebe76c27bbe1aff638aaeb466196b41230db2 100644 (file)
@@ -23,7 +23,7 @@
    This is supposed to always return -1 and set errno to EINTR,
    but rules were meant to be broken.  */
 int
-pause ()
+pause (void)
 {
   __set_errno (ENOSYS);
   return -1;
index 18fce1db96920abfee4feb1bcfd2a68c1b25a5d0..f31950b9283154e7f56de36ebba6adf987b941cd 100644 (file)
@@ -18,7 +18,7 @@
 #include <unistd.h>
 
 int
-setpgrp ()
+setpgrp (void)
 {
   return __setpgid (0, 0);
 }
index d442d5775a77c9de07163fb8977267f708dbbd0b..d3b99b2beb5248c7f5405c01898d9ba8468dc190 100644 (file)
@@ -23,7 +23,7 @@
    The process group IDs of the session and the calling process
    are set to the process ID of the calling process, which is returned.  */
 int
-__setsid ()
+__setsid (void)
 {
   __set_errno (ENOSYS);
   return -1;
index c4904e36e130d928f7d6eecb53e4e6c2940ed936..6dfb7d47e36a65eb6741a8aac28a19f9ccbb4996 100644 (file)
@@ -37,6 +37,6 @@ main (void)
 }
 
 void
-noop ()
+noop (void)
 {
 }
index 9568c06475d6ce756af3b8b7f6e52738410b64a9..1fd8f92680fd30840ecff6c732ba075fa44e9f16 100644 (file)
@@ -795,7 +795,7 @@ _sethtent(f)
 libresolv_hidden_def (_sethtent)
 
 void
-_endhtent()
+_endhtent (void)
 {
        if (hostf && !stayopen) {
                (void) fclose(hostf);
@@ -804,7 +804,7 @@ _endhtent()
 }
 
 struct hostent *
-_gethtent()
+_gethtent (void)
 {
        char *p;
        char *cp, **q;
@@ -1028,7 +1028,7 @@ ht_sethostent(stayopen)
 }
 
 void
-ht_endhostent()
+ht_endhostent (void)
 {
        _endhtent();
 }
@@ -1050,13 +1050,13 @@ ht_gethostbyaddr(addr, len, af)
 }
 
 struct hostent *
-gethostent()
+gethostent (void)
 {
        return (_gethtent());
 }
 
 void
-dns_service()
+dns_service (void)
 {
        return;
 }
index 1745be8e488e771d2fd1b6bbb947c66f2f3e7378..6371b0be8483779aaba417de68f2cab715e24654 100644 (file)
@@ -20,7 +20,7 @@
 
 
 double
-drand48 ()
+drand48 (void)
 {
   double result;
 
index 1c8c3796ca3ed6fc735db1054dbbcc85e871c570..2b9b19a11341e47f62d3bc4b7295d4d31b4acb03 100644 (file)
@@ -20,7 +20,7 @@
 
 
 long int
-lrand48 ()
+lrand48 (void)
 {
   long int result;
 
index a0693f567801367f9ab969feac51677cb5018d24..6e0adf94189fe131c50a74bb95917f121d7c0143 100644 (file)
@@ -20,7 +20,7 @@
 
 
 long int
-mrand48 ()
+mrand48 (void)
 {
   long int result;
 
index 3e0839fe4c984aa625be501906eb0f53a34cfa90..ba3a9e79bf3f0d403f5f1d3f7bb8af46f60e5b1e 100644 (file)
@@ -22,7 +22,7 @@
 
 /* Return a random integer between 0 and RAND_MAX.  */
 int
-rand ()
+rand (void)
 {
   return (int) __random ();
 }
index 0235ebe9b46ade91f9fc198d226570aa6b607c32..e4302b0791d065d7dc8ad9ce639bfb31752cce75 100644 (file)
@@ -289,7 +289,7 @@ weak_alias (__setstate, setstate)
    pointer if the front one has wrapped.  Returns a 31-bit random number.  */
 
 long int
-__random ()
+__random (void)
 {
   int32_t retval;
 
index fdcd8e1d080fc7d72adc5460c94b99917719cffd..63c995b0da9b7acd12a64d7a9e4f7deab07daa11 100644 (file)
@@ -349,7 +349,7 @@ unsetenv (name)
    never made it.  Nevertheless the POSIX.9 standard (POSIX bindings
    for Fortran 77) requires this function.  */
 int
-clearenv ()
+clearenv (void)
 {
   LOCK;
 
index ec85930e4473041584ba92e7ef864b7e1bb32654..b46905fb06eb2a49e1930711093f338a5edb4c0d 100644 (file)
@@ -356,7 +356,7 @@ clnttcp_freeres (cl, xdr_res, res_ptr)
 }
 
 static void
-clnttcp_abort ()
+clnttcp_abort (void)
 {
 }
 
index 9b5d7ca82256290bb7bf159407295b87096b8188..2ad81972561aa6b017d7a94ca2e6835bca020048 100644 (file)
@@ -330,7 +330,7 @@ clntunix_freeres (cl, xdr_res, res_ptr)
 }
 
 static void
-clntunix_abort ()
+clntunix_abort (void)
 {
 }
 
index fe8fec8b239bf73d8f3666bd79d1722526c88218..8bf49c9fc03baf837ea59cdc50d7d15e999c6a6a 100644 (file)
@@ -20,7 +20,7 @@
 
 /* Return the system page size.  */
 int
-__getpagesize ()
+__getpagesize (void)
 {
   return __vm_page_size;
 }
index cc28f57c77c763c07fb6b55af846e8aa44d45204..075511308ce896fcd099cf8e49c0fe3fbbd52722 100644 (file)
@@ -24,7 +24,7 @@
 
 /* Return the number of processors configured on the system. */
 int
-__get_nprocs_conf ()
+__get_nprocs_conf (void)
 {
   struct host_basic_info hbi;
   kern_return_t err;
@@ -43,7 +43,7 @@ weak_alias (__get_nprocs_conf, get_nprocs_conf)
 
 /* Return the number of processors currently available on the system. */
 int
-__get_nprocs ()
+__get_nprocs (void)
 {
   struct host_basic_info hbi;
   kern_return_t err;
@@ -62,7 +62,7 @@ weak_alias (__get_nprocs, get_nprocs)
 
 /* Return the number of physical pages on the system. */
 long int
-__get_phys_pages ()
+__get_phys_pages (void)
 {
   struct host_basic_info hbi;
   kern_return_t err;
@@ -81,7 +81,7 @@ weak_alias (__get_phys_pages, get_phys_pages)
 
 /* Return the number of available physical pages */
 long int
-__get_avphys_pages ()
+__get_avphys_pages (void)
 {
   vm_statistics_data_t vs;
   kern_return_t err;
index 94b6d094a2b084ed716fe8359e09a4e337cc410e..d85c22a036bf2c99c62b271f5620061eecbf4363 100644 (file)
@@ -553,7 +553,7 @@ __access (const char *file, int type)
 }
 
 pid_t weak_function
-__getpid ()
+__getpid (void)
 {
   pid_t pid, ppid;
   int orphaned;
index 69be2cc3524e7b801c2c3a784c3adffe00ace614..2eea58df6a302b7f887fd5cb49655e0b85db3c40 100644 (file)
@@ -21,7 +21,7 @@
 /* Return frequency of `times'.
    Since Mach reports CPU times in microseconds, we always use 1 million.  */
 int
-__getclktck ()
+__getclktck (void)
 {
   return 1000000;
 }
index 16a0b781123a33fb38afeee9ca37af8c3ac0838e..db5104c6b4f46ebb169fba954d4ce59db2651570 100644 (file)
@@ -24,7 +24,7 @@
 /* Return the maximum number of file descriptors the current process
    could possibly have (until it raises the resource limit).  */
 int
-__getdtablesize ()
+__getdtablesize (void)
 {
   rlim_t limit;
 
index 3ab46ed20d69d1eaad2c84ec69a35b74fe59d223..dac104d00624041853e0bb109daeed2fc011f291 100644 (file)
@@ -22,7 +22,7 @@
 
 /* Get the effective group ID of the calling process.  */
 gid_t
-__getegid ()
+__getegid (void)
 {
   error_t err;
   gid_t egid;
index e30c028b1c2685ded16f18f0d759817d30927fc9..32e59c2b1bb3c85fd45a8582c1aa3279301d9406 100644 (file)
@@ -22,7 +22,7 @@
 
 /* Get the effective user ID of the calling process.  */
 uid_t
-__geteuid ()
+__geteuid (void)
 {
   error_t err;
   uid_t euid;
index 9168994386955bd5bf7713ee4727dc0dcb2ef93c..3c6397d2f4a616f60dcc7b901d0767d408d183dc 100644 (file)
@@ -22,7 +22,7 @@
 
 /* Get the real group ID of the calling process.  */
 gid_t
-__getgid ()
+__getgid (void)
 {
   error_t err;
   gid_t gid;
index d1d0c6225dce60532b8040c64dbf652b488f836a..4fc30169772992fc9fa90a312e3ea467f3ed52b4 100644 (file)
@@ -21,7 +21,7 @@
 
 /* Return the current machine's Internet number.  */
 long int
-gethostid ()
+gethostid (void)
 {
   /* The hostid is just the contents of the file /etc/hostid,
      kept as text of hexadecimal digits.  */
index d88c043774e58a75fb3199aa89fb554468957d3e..ce638afaf8422bb3325312dd3429d1b5248ae289 100644 (file)
@@ -23,7 +23,7 @@
 /* Return the login name of the user, or NULL if it can't be determined.
    The returned pointer, if not NULL, is good only until the next call.  */
 char *
-getlogin ()
+getlogin (void)
 {
   static char login[1024];     /* XXX */
   error_t err;
index e0a8865d4d753f33db2375703d718c739175c3a7..0c595f7df7bb7f4df7ce7f9b815923ef95656616 100644 (file)
@@ -21,7 +21,7 @@
 
 /* Get the process ID of the calling process.  */
 pid_t
-__getpid ()
+__getpid (void)
 {
   /* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock.  */
   return _hurd_pid;
index c622ee9e684796ae994f973ead9a4e929de2c574..9e35645a26e0c56ae2dbb9004becab5745c82fcf 100644 (file)
@@ -23,7 +23,7 @@
 
 /* Get the parent process ID of the calling process.  */
 pid_t
-__getppid ()
+__getppid (void)
 {
   /* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock.  */
   return _hurd_ppid;
index fa9e2f8b40a8f8c869a78b5464f502490d84c24d..6d9a707ca3012e66a5dd7660cb7669bab5c2de97 100644 (file)
@@ -22,7 +22,7 @@
 
 /* Get the real user ID of the calling process.  */
 uid_t
-__getuid ()
+__getuid (void)
 {
   error_t err;
   uid_t uid;
index f4ddf7076bd22dab1da58ca036c313cac2879398..775182edabd8bbcb28e2c4f9e28faae6ced21b21 100644 (file)
@@ -21,7 +21,7 @@
 
 /* Make all changes done to all files actually appear on disk.  */
 void
-sync ()
+sync (void)
 {
   /* This is not actually synchronous; we don't wait.  */
   error_t err = __USEPORT (CRDIR, __file_syncfs (port, 0, 1));
index e762fa7f63c5c84c4f8b9fb3ca833210e6a16355..98fe3b8ba8b7b5cc410383552bbc9607a144e95c 100644 (file)
@@ -20,7 +20,7 @@
 
 /* Return the time used by the program so far (user time + system time).  */
 clock_t
-clock ()
+clock (void)
 {
   struct tms buf;
 
index 6c2f22c7a9f41d2daa8110225c7f16311f0bfb41..a42dc1dfd892e9c173f9c9f2765c9a75562ebf94 100644 (file)
@@ -25,7 +25,7 @@
    The process group IDs of the session and the calling process
    are set to the process ID of the calling process, which is returned.  */
 int
-__setsid ()
+__setsid (void)
 {
   pid_t pid = getpid ();
   int tty;
index 3d1fe8cb730bf9e2125bc2784264a21dad8974c8..18b2503d1ee80e138886dba662128b285bbe6acc 100644 (file)
@@ -20,7 +20,7 @@
 
 /* Return the system page size.  */
 int
-__getpagesize ()
+__getpagesize (void)
 {
 #ifdef EXEC_PAGESIZE
   return EXEC_PAGESIZE;
index 55e9f4f92fcfbf702c9b7c223255027d264d237d..47ec6c06db553d15bd5a3a2d3ec2b12bca3fcf3c 100644 (file)
@@ -25,7 +25,7 @@
 
 /* Return frequency of times().  */
 int
-__getclktck ()
+__getclktck (void)
 {
   return GLRO(dl_clktck) ?: SYSTEM_CLK_TCK;
 }
index 2cc3bb65ac982d7008370cc923bdb5c9f6a24417..6f551b768283284ae13d295f8e4c31dff9244abb 100644 (file)
@@ -66,7 +66,7 @@ sethostid (id)
 # include <netinet/in.h>
 
 long int
-gethostid ()
+gethostid (void)
 {
   char hostname[MAXHOSTNAMELEN + 1];
   size_t buflen;
index 2a9184dad36873b6ae8ab0a3b778d06a7178d20c..e1454158c4f2debf05f3ec016ca45a62c7975ce3 100644 (file)
@@ -24,7 +24,7 @@
 
 /* Return the system page size.  */
 int
-__getpagesize ()
+__getpagesize (void)
 {
   assert (GLRO(dl_pagesize) != 0);
   return GLRO(dl_pagesize);
index 249bd19c39e6d09d28ed8ac4dc8394c754f968c3..88f28c9e190b97b56b03fc9facc9c1bc6977e33b 100644 (file)
@@ -124,7 +124,7 @@ next_line (int fd, char *const buffer, char **cp, char **re,
 
 
 int
-__get_nprocs ()
+__get_nprocs (void)
 {
   static int cached_result;
   static time_t timestamp;
@@ -234,7 +234,7 @@ weak_alias (__get_nprocs, get_nprocs)
 /* On some architectures it is possible to distinguish between configured
    and active cpus.  */
 int
-__get_nprocs_conf ()
+__get_nprocs_conf (void)
 {
   /* XXX Here will come a test for the new system call.  */
 
@@ -333,7 +333,7 @@ phys_pages_info (const char *format)
    But not all systems have support for the /proc filesystem.  If it
    is not available we return -1 as an error signal.  */
 long int
-__get_phys_pages ()
+__get_phys_pages (void)
 {
   /* XXX Here will come a test for the new system call.  */
 
@@ -354,7 +354,7 @@ weak_alias (__get_phys_pages, get_phys_pages)
    But not all systems have support for the /proc filesystem.  If it
    is not available we return -1 as an error signal.  */
 long int
-__get_avphys_pages ()
+__get_avphys_pages (void)
 {
   /* XXX Here will come a test for the new system call.  */
 
index d7a1f1491dceca54eada05507e0d4ea6a8ce5b96..acd624fd3e41dfd3531370dde3b70d91ef4373ff 100644 (file)
@@ -21,7 +21,7 @@
 
 /* Return the time used by the program so far (user time + system time).  */
 clock_t
-clock ()
+clock (void)
 {
   __set_errno (ENOSYS);
   return (clock_t) -1;
index 0064cb01330735decfa54bdb42706f5f34d18326..4f8af8d523efa69453c4eaa49861fca26a4fbfb3 100644 (file)
@@ -125,7 +125,7 @@ __tzstring (const char *s)
 size_t __tzname_cur_max;
 
 long int
-__tzname_max ()
+__tzname_max (void)
 {
   __libc_lock_lock (tzset_lock);