summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-06-08 00:22:23 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-06-08 00:22:23 +0000
commit60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca (patch)
tree29d9258b64874c6c9838757a9c67ef62a6a0868c
parent2e09a79ada1f6d92809a037d41895e3d9302ad59 (diff)
downloadglibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar.gz
Use (void) in no-arguments function definitions.
-rw-r--r--ChangeLog109
-rw-r--r--catgets/gencat.c2
-rw-r--r--crypt/crypt_util.c2
-rw-r--r--crypt/speeds.c4
-rw-r--r--hurd/hurdmalloc.c2
-rw-r--r--inet/ruserpass.c2
-rw-r--r--intl/finddomain.c2
-rw-r--r--intl/localealias.c2
-rw-r--r--intl/plural-exp.c2
-rw-r--r--libio/fcloseall.c2
-rw-r--r--libio/genops.c16
-rw-r--r--libio/getchar.c2
-rw-r--r--libio/getchar_u.c2
-rw-r--r--libio/getwchar.c2
-rw-r--r--libio/getwchar_u.c2
-rw-r--r--libio/oldstdfiles.c2
-rw-r--r--login/getpt.c2
-rw-r--r--login/tst-utmp.c2
-rw-r--r--malloc/hooks.c2
-rw-r--r--malloc/malloc.c2
-rw-r--r--malloc/mtrace.c6
-rw-r--r--misc/fstab.c2
-rw-r--r--misc/getclktck.c2
-rw-r--r--misc/getdtsz.c2
-rw-r--r--misc/gethostid.c2
-rw-r--r--misc/getpagesize.c2
-rw-r--r--misc/getsysstats.c8
-rw-r--r--misc/getttyent.c6
-rw-r--r--misc/getusershell.c8
-rw-r--r--misc/hsearch.c2
-rw-r--r--misc/sync.c2
-rw-r--r--misc/syslog.c4
-rw-r--r--misc/ttyslot.c2
-rw-r--r--misc/vhangup.c2
-rw-r--r--ports/ChangeLog.ia645
-rw-r--r--ports/ChangeLog.m68k5
-rw-r--r--ports/sysdeps/unix/sysv/linux/ia64/getpagesize.c2
-rw-r--r--ports/sysdeps/unix/sysv/linux/m68k/getpagesize.c2
-rw-r--r--posix/fork.c2
-rw-r--r--posix/getegid.c2
-rw-r--r--posix/geteuid.c2
-rw-r--r--posix/getgid.c2
-rw-r--r--posix/getpid.c2
-rw-r--r--posix/getppid.c2
-rw-r--r--posix/getuid.c2
-rw-r--r--posix/pause.c2
-rw-r--r--posix/setpgrp.c2
-rw-r--r--posix/setsid.c2
-rw-r--r--posix/test-vfork.c2
-rw-r--r--resolv/gethnamaddr.c10
-rw-r--r--stdlib/drand48.c2
-rw-r--r--stdlib/lrand48.c2
-rw-r--r--stdlib/mrand48.c2
-rw-r--r--stdlib/rand.c2
-rw-r--r--stdlib/random.c2
-rw-r--r--stdlib/setenv.c2
-rw-r--r--sunrpc/clnt_tcp.c2
-rw-r--r--sunrpc/clnt_unix.c2
-rw-r--r--sysdeps/mach/getpagesize.c2
-rw-r--r--sysdeps/mach/getsysstats.c8
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c2
-rw-r--r--sysdeps/mach/hurd/getclktck.c2
-rw-r--r--sysdeps/mach/hurd/getdtsz.c2
-rw-r--r--sysdeps/mach/hurd/getegid.c2
-rw-r--r--sysdeps/mach/hurd/geteuid.c2
-rw-r--r--sysdeps/mach/hurd/getgid.c2
-rw-r--r--sysdeps/mach/hurd/gethostid.c2
-rw-r--r--sysdeps/mach/hurd/getlogin.c2
-rw-r--r--sysdeps/mach/hurd/getpid.c2
-rw-r--r--sysdeps/mach/hurd/getppid.c2
-rw-r--r--sysdeps/mach/hurd/getuid.c2
-rw-r--r--sysdeps/mach/hurd/sync.c2
-rw-r--r--sysdeps/posix/clock.c2
-rw-r--r--sysdeps/unix/bsd/setsid.c2
-rw-r--r--sysdeps/unix/getpagesize.c2
-rw-r--r--sysdeps/unix/sysv/linux/getclktck.c2
-rw-r--r--sysdeps/unix/sysv/linux/gethostid.c2
-rw-r--r--sysdeps/unix/sysv/linux/getpagesize.c2
-rw-r--r--sysdeps/unix/sysv/linux/getsysstats.c8
-rw-r--r--time/clock.c2
-rw-r--r--time/tzset.c2
81 files changed, 226 insertions, 107 deletions
diff --git a/ChangeLog b/ChangeLog
index 64374b032b..7bbc4c99c9 100644
--- 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)]
diff --git a/catgets/gencat.c b/catgets/gencat.c
index ae0a643ac0..b11583dfa1 100644
--- a/catgets/gencat.c
+++ b/catgets/gencat.c
@@ -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. */
diff --git a/crypt/crypt_util.c b/crypt/crypt_util.c
index 99ad321b38..2409079894 100644
--- a/crypt/crypt_util.c
+++ b/crypt/crypt_util.c
@@ -553,7 +553,7 @@ small_tables_done:
}
void
-__init_des()
+__init_des (void)
{
__init_des_r(&_ufc_foobar);
}
diff --git a/crypt/speeds.c b/crypt/speeds.c
index 6043eab129..0d55ae83be 100644
--- a/crypt/speeds.c
+++ b/crypt/speeds.c
@@ -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
diff --git a/hurd/hurdmalloc.c b/hurd/hurdmalloc.c
index 0b48c08b04..071abeb718 100644
--- a/hurd/hurdmalloc.c
+++ b/hurd/hurdmalloc.c
@@ -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;
diff --git a/inet/ruserpass.c b/inet/ruserpass.c
index 6898d8f47c..2669a885b0 100644
--- a/inet/ruserpass.c
+++ b/inet/ruserpass.c
@@ -289,7 +289,7 @@ bad:
libc_hidden_def (ruserpass)
static int
-token()
+token (void)
{
char *cp;
int c;
diff --git a/intl/finddomain.c b/intl/finddomain.c
index b07d890050..5d4c238d20 100644
--- a/intl/finddomain.c
+++ b/intl/finddomain.c
@@ -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;
diff --git a/intl/localealias.c b/intl/localealias.c
index 478e5c45a6..ee71eaf45d 100644
--- a/intl/localealias.c
+++ b/intl/localealias.c
@@ -362,7 +362,7 @@ out:
static int
-extend_alias_table ()
+extend_alias_table (void)
{
size_t new_size;
struct alias_map *new_map;
diff --git a/intl/plural-exp.c b/intl/plural-exp.c
index 156a181650..a2d23efc93 100644
--- a/intl/plural-exp.c
+++ b/intl/plural-exp.c
@@ -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)
{
diff --git a/libio/fcloseall.c b/libio/fcloseall.c
index e1b0049f6a..39c3be472d 100644
--- a/libio/fcloseall.c
+++ b/libio/fcloseall.c
@@ -28,7 +28,7 @@
#include <stdio.h>
int
-__fcloseall ()
+__fcloseall (void)
{
/* Close all streams. */
return _IO_cleanup ();
diff --git a/libio/genops.c b/libio/genops.c
index e5c5d5cafe..a5fe13758e 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -873,7 +873,7 @@ _IO_flush_all_lockp (int do_lock)
int
-_IO_flush_all ()
+_IO_flush_all (void)
{
/* We want locking. */
return _IO_flush_all_lockp (1);
@@ -881,7 +881,7 @@ _IO_flush_all ()
libc_hidden_def (_IO_flush_all)
void
-_IO_flush_all_linebuffered ()
+_IO_flush_all_linebuffered (void)
{
struct _IO_FILE *fp;
int last_stamp;
@@ -1006,7 +1006,7 @@ libc_freeres_fn (buffer_free)
int
-_IO_cleanup ()
+_IO_cleanup (void)
{
/* We do *not* want locking. Some threads might use streams but
that is their problem, we flush them underneath them. */
@@ -1266,14 +1266,14 @@ _IO_default_imbue (fp, locale)
}
_IO_ITER
-_IO_iter_begin()
+_IO_iter_begin (void)
{
return (_IO_ITER) _IO_list_all;
}
libc_hidden_def (_IO_iter_begin)
_IO_ITER
-_IO_iter_end()
+_IO_iter_end (void)
{
return NULL;
}
@@ -1296,7 +1296,7 @@ _IO_iter_file(iter)
libc_hidden_def (_IO_iter_file)
void
-_IO_list_lock()
+_IO_list_lock (void)
{
#ifdef _IO_MTSAFE_IO
_IO_lock_lock (list_all_lock);
@@ -1305,7 +1305,7 @@ _IO_list_lock()
libc_hidden_def (_IO_list_lock)
void
-_IO_list_unlock()
+_IO_list_unlock (void)
{
#ifdef _IO_MTSAFE_IO
_IO_lock_unlock (list_all_lock);
@@ -1314,7 +1314,7 @@ _IO_list_unlock()
libc_hidden_def (_IO_list_unlock)
void
-_IO_list_resetlock()
+_IO_list_resetlock (void)
{
#ifdef _IO_MTSAFE_IO
_IO_lock_init (list_all_lock);
diff --git a/libio/getchar.c b/libio/getchar.c
index 4a415f7dff..17709bf451 100644
--- a/libio/getchar.c
+++ b/libio/getchar.c
@@ -30,7 +30,7 @@
#undef getchar
int
-getchar ()
+getchar (void)
{
int result;
_IO_acquire_lock (_IO_stdin);
diff --git a/libio/getchar_u.c b/libio/getchar_u.c
index 9f22aa5299..c01d957154 100644
--- a/libio/getchar_u.c
+++ b/libio/getchar_u.c
@@ -30,7 +30,7 @@
#undef getchar_unlocked
int
-getchar_unlocked ()
+getchar_unlocked (void)
{
return _IO_getc_unlocked (_IO_stdin);
}
diff --git a/libio/getwchar.c b/libio/getwchar.c
index b327c313a6..10844e2bdc 100644
--- a/libio/getwchar.c
+++ b/libio/getwchar.c
@@ -30,7 +30,7 @@
#undef getwchar
wint_t
-getwchar ()
+getwchar (void)
{
wint_t result;
_IO_acquire_lock (_IO_stdin);
diff --git a/libio/getwchar_u.c b/libio/getwchar_u.c
index 77138ee33d..97bb244c66 100644
--- a/libio/getwchar_u.c
+++ b/libio/getwchar_u.c
@@ -30,7 +30,7 @@
#undef getwchar_unlocked
wint_t
-getwchar_unlocked ()
+getwchar_unlocked (void)
{
return _IO_getwc_unlocked (_IO_stdin);
}
diff --git a/libio/oldstdfiles.c b/libio/oldstdfiles.c
index b0353d5552..b02c62d7f0 100644
--- a/libio/oldstdfiles.c
+++ b/libio/oldstdfiles.c
@@ -73,7 +73,7 @@ static void _IO_check_libio (void) __THROW __attribute__ ((constructor));
_IO_list_all accordingly. */
static void
-_IO_check_libio ()
+_IO_check_libio (void)
{
if (&_IO_stdin_used == NULL)
{
diff --git a/login/getpt.c b/login/getpt.c
index d36e83684e..813e7acd10 100644
--- a/login/getpt.c
+++ b/login/getpt.c
@@ -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;
diff --git a/login/tst-utmp.c b/login/tst-utmp.c
index 573d4a92c1..a61b54305e 100644
--- a/login/tst-utmp.c
+++ b/login/tst-utmp.c
@@ -395,7 +395,7 @@ do_test (int argc, char *argv[])
/* No field 'ut_type' in struct utmp. */
int
-main ()
+main (void)
{
return 0;
}
diff --git a/malloc/hooks.c b/malloc/hooks.c
index 8e4a6ed033..8c25846330 100644
--- a/malloc/hooks.c
+++ b/malloc/hooks.c
@@ -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;
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 70b9329cc3..be472b2ba3 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -4602,7 +4602,7 @@ struct mallinfo __libc_mallinfo()
*/
void
-__malloc_stats()
+__malloc_stats (void)
{
int i;
mstate ar_ptr;
diff --git a/malloc/mtrace.c b/malloc/mtrace.c
index 62867b1182..ee941333a8 100644
--- a/malloc/mtrace.c
+++ b/malloc/mtrace.c
@@ -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;
diff --git a/misc/fstab.c b/misc/fstab.c
index 0e2d86bd05..6172bcba3e 100644
--- a/misc/fstab.c
+++ b/misc/fstab.c
@@ -95,7 +95,7 @@ getfsfile (name)
void
-endfsent ()
+endfsent (void)
{
struct fstab_state *state;
diff --git a/misc/getclktck.c b/misc/getclktck.c
index 8975ea5726..ce90baa971 100644
--- a/misc/getclktck.c
+++ b/misc/getclktck.c
@@ -19,7 +19,7 @@
/* Return frequency of times(). */
int
-__getclktck ()
+__getclktck (void)
{
#ifdef CLK_TCK
return CLK_TCK;
diff --git a/misc/getdtsz.c b/misc/getdtsz.c
index 3aa9eeffd9..25cf14abe2 100644
--- a/misc/getdtsz.c
+++ b/misc/getdtsz.c
@@ -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;
diff --git a/misc/gethostid.c b/misc/gethostid.c
index 44636f5857..ce8fd2c579 100644
--- a/misc/gethostid.c
+++ b/misc/gethostid.c
@@ -20,7 +20,7 @@
/* Return the current machine's Internet number. */
long int
-gethostid ()
+gethostid (void)
{
__set_errno (ENOSYS);
return -1L;
diff --git a/misc/getpagesize.c b/misc/getpagesize.c
index 93035a7213..43e00a899c 100644
--- a/misc/getpagesize.c
+++ b/misc/getpagesize.c
@@ -20,7 +20,7 @@
/* Return the system page size. */
int
-__getpagesize ()
+__getpagesize (void)
{
__set_errno (ENOSYS);
return 0;
diff --git a/misc/getsysstats.c b/misc/getsysstats.c
index 83b07cafec..d6f9df59d2 100644
--- a/misc/getsysstats.c
+++ b/misc/getsysstats.c
@@ -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);
diff --git a/misc/getttyent.c b/misc/getttyent.c
index 18944e2b99..864f65f523 100644
--- a/misc/getttyent.c
+++ b/misc/getttyent.c
@@ -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;
diff --git a/misc/getusershell.c b/misc/getusershell.c
index 677377c3f7..fc2c43b771 100644
--- a/misc/getusershell.c
+++ b/misc/getusershell.c
@@ -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;
diff --git a/misc/hsearch.c b/misc/hsearch.c
index 96684c3080..58b5d393f4 100644
--- a/misc/hsearch.c
+++ b/misc/hsearch.c
@@ -45,7 +45,7 @@ hcreate (nel)
void
-__hdestroy ()
+__hdestroy (void)
{
hdestroy_r (&htab);
}
diff --git a/misc/sync.c b/misc/sync.c
index 1b663422b5..0b18e72531 100644
--- a/misc/sync.c
+++ b/misc/sync.c
@@ -20,7 +20,7 @@
/* Make all changes done to all files actually appear on disk. */
void
-sync ()
+sync (void)
{
__set_errno (ENOSYS);
}
diff --git a/misc/syslog.c b/misc/syslog.c
index 4976e89b6e..70daa9e1f3 100644
--- a/misc/syslog.c
+++ b/misc/syslog.c
@@ -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);
diff --git a/misc/ttyslot.c b/misc/ttyslot.c
index 75ca6a2d42..9c69589dae 100644
--- a/misc/ttyslot.c
+++ b/misc/ttyslot.c
@@ -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;
diff --git a/misc/vhangup.c b/misc/vhangup.c
index a8571f7c56..afee526f39 100644
--- a/misc/vhangup.c
+++ b/misc/vhangup.c
@@ -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;
diff --git a/ports/ChangeLog.ia64 b/ports/ChangeLog.ia64
index 09cb121fa1..7f9fd3c36e 100644
--- a/ports/ChangeLog.ia64
+++ b/ports/ChangeLog.ia64
@@ -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]
diff --git a/ports/ChangeLog.m68k b/ports/ChangeLog.m68k
index e7ddd463d0..2cd6a6a06b 100644
--- a/ports/ChangeLog.m68k
+++ b/ports/ChangeLog.m68k
@@ -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
diff --git a/ports/sysdeps/unix/sysv/linux/ia64/getpagesize.c b/ports/sysdeps/unix/sysv/linux/ia64/getpagesize.c
index da8242351d..8c2a60bc73 100644
--- a/ports/sysdeps/unix/sysv/linux/ia64/getpagesize.c
+++ b/ports/sysdeps/unix/sysv/linux/ia64/getpagesize.c
@@ -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);
diff --git a/ports/sysdeps/unix/sysv/linux/m68k/getpagesize.c b/ports/sysdeps/unix/sysv/linux/m68k/getpagesize.c
index aa11d1a80e..47527700b6 100644
--- a/ports/sysdeps/unix/sysv/linux/m68k/getpagesize.c
+++ b/ports/sysdeps/unix/sysv/linux/m68k/getpagesize.c
@@ -26,7 +26,7 @@
/* Return the system page size. */
int
-__getpagesize ()
+__getpagesize (void)
{
#ifdef __NR_getpagesize
int result;
diff --git a/posix/fork.c b/posix/fork.c
index 01b5279199..4946a40b8b 100644
--- a/posix/fork.c
+++ b/posix/fork.c
@@ -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;
diff --git a/posix/getegid.c b/posix/getegid.c
index e8f09f5790..c14cc60971 100644
--- a/posix/getegid.c
+++ b/posix/getegid.c
@@ -20,7 +20,7 @@
/* Get the effective group ID of the calling process. */
__gid_t
-__getegid ()
+__getegid (void)
{
__set_errno (ENOSYS);
return -1;
diff --git a/posix/geteuid.c b/posix/geteuid.c
index 566db40b0d..c7af13f81e 100644
--- a/posix/geteuid.c
+++ b/posix/geteuid.c
@@ -21,7 +21,7 @@
/* Get the effective user ID of the calling process. */
__uid_t
-__geteuid ()
+__geteuid (void)
{
__set_errno (ENOSYS);
return -1;
diff --git a/posix/getgid.c b/posix/getgid.c
index 14f9dc6b0e..719f8fb46b 100644
--- a/posix/getgid.c
+++ b/posix/getgid.c
@@ -21,7 +21,7 @@
/* Get the real group ID of the calling process. */
gid_t
-__getgid ()
+__getgid (void)
{
__set_errno (ENOSYS);
return -1;
diff --git a/posix/getpid.c b/posix/getpid.c
index 4a64f57fa2..11a1865759 100644
--- a/posix/getpid.c
+++ b/posix/getpid.c
@@ -20,7 +20,7 @@
/* Get the process ID of the calling process. */
int
-__getpid ()
+__getpid (void)
{
__set_errno (ENOSYS);
return -1;
diff --git a/posix/getppid.c b/posix/getppid.c
index e6dfcbb605..c32032436e 100644
--- a/posix/getppid.c
+++ b/posix/getppid.c
@@ -21,7 +21,7 @@
/* Get the parent process ID of the calling process. */
int
-__getppid ()
+__getppid (void)
{
__set_errno (ENOSYS);
return -1;
diff --git a/posix/getuid.c b/posix/getuid.c
index ba81a80f65..19ad29626e 100644
--- a/posix/getuid.c
+++ b/posix/getuid.c
@@ -21,7 +21,7 @@
/* Get the real user ID of the calling process. */
uid_t
-__getuid ()
+__getuid (void)
{
__set_errno (ENOSYS);
return -1;
diff --git a/posix/pause.c b/posix/pause.c
index 81b583b545..19eebe76c2 100644
--- a/posix/pause.c
+++ b/posix/pause.c
@@ -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;
diff --git a/posix/setpgrp.c b/posix/setpgrp.c
index 18fce1db96..f31950b928 100644
--- a/posix/setpgrp.c
+++ b/posix/setpgrp.c
@@ -18,7 +18,7 @@
#include <unistd.h>
int
-setpgrp ()
+setpgrp (void)
{
return __setpgid (0, 0);
}
diff --git a/posix/setsid.c b/posix/setsid.c
index d442d5775a..d3b99b2beb 100644
--- a/posix/setsid.c
+++ b/posix/setsid.c
@@ -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;
diff --git a/posix/test-vfork.c b/posix/test-vfork.c
index c4904e36e1..6dfb7d47e3 100644
--- a/posix/test-vfork.c
+++ b/posix/test-vfork.c
@@ -37,6 +37,6 @@ main (void)
}
void
-noop ()
+noop (void)
{
}
diff --git a/resolv/gethnamaddr.c b/resolv/gethnamaddr.c
index 9568c06475..1fd8f92680 100644
--- a/resolv/gethnamaddr.c
+++ b/resolv/gethnamaddr.c
@@ -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;
}
diff --git a/stdlib/drand48.c b/stdlib/drand48.c
index 1745be8e48..6371b0be84 100644
--- a/stdlib/drand48.c
+++ b/stdlib/drand48.c
@@ -20,7 +20,7 @@
double
-drand48 ()
+drand48 (void)
{
double result;
diff --git a/stdlib/lrand48.c b/stdlib/lrand48.c
index 1c8c3796ca..2b9b19a113 100644
--- a/stdlib/lrand48.c
+++ b/stdlib/lrand48.c
@@ -20,7 +20,7 @@
long int
-lrand48 ()
+lrand48 (void)
{
long int result;
diff --git a/stdlib/mrand48.c b/stdlib/mrand48.c
index a0693f5678..6e0adf9418 100644
--- a/stdlib/mrand48.c
+++ b/stdlib/mrand48.c
@@ -20,7 +20,7 @@
long int
-mrand48 ()
+mrand48 (void)
{
long int result;
diff --git a/stdlib/rand.c b/stdlib/rand.c
index 3e0839fe4c..ba3a9e79bf 100644
--- a/stdlib/rand.c
+++ b/stdlib/rand.c
@@ -22,7 +22,7 @@
/* Return a random integer between 0 and RAND_MAX. */
int
-rand ()
+rand (void)
{
return (int) __random ();
}
diff --git a/stdlib/random.c b/stdlib/random.c
index 0235ebe9b4..e4302b0791 100644
--- a/stdlib/random.c
+++ b/stdlib/random.c
@@ -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;
diff --git a/stdlib/setenv.c b/stdlib/setenv.c
index fdcd8e1d08..63c995b0da 100644
--- a/stdlib/setenv.c
+++ b/stdlib/setenv.c
@@ -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;
diff --git a/sunrpc/clnt_tcp.c b/sunrpc/clnt_tcp.c
index ec85930e44..b46905fb06 100644
--- a/sunrpc/clnt_tcp.c
+++ b/sunrpc/clnt_tcp.c
@@ -356,7 +356,7 @@ clnttcp_freeres (cl, xdr_res, res_ptr)
}
static void
-clnttcp_abort ()
+clnttcp_abort (void)
{
}
diff --git a/sunrpc/clnt_unix.c b/sunrpc/clnt_unix.c
index 9b5d7ca822..2ad8197256 100644
--- a/sunrpc/clnt_unix.c
+++ b/sunrpc/clnt_unix.c
@@ -330,7 +330,7 @@ clntunix_freeres (cl, xdr_res, res_ptr)
}
static void
-clntunix_abort ()
+clntunix_abort (void)
{
}
diff --git a/sysdeps/mach/getpagesize.c b/sysdeps/mach/getpagesize.c
index fe8fec8b23..8bf49c9fc0 100644
--- a/sysdeps/mach/getpagesize.c
+++ b/sysdeps/mach/getpagesize.c
@@ -20,7 +20,7 @@
/* Return the system page size. */
int
-__getpagesize ()
+__getpagesize (void)
{
return __vm_page_size;
}
diff --git a/sysdeps/mach/getsysstats.c b/sysdeps/mach/getsysstats.c
index cc28f57c77..075511308c 100644
--- a/sysdeps/mach/getsysstats.c
+++ b/sysdeps/mach/getsysstats.c
@@ -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;
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 94b6d094a2..d85c22a036 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -553,7 +553,7 @@ __access (const char *file, int type)
}
pid_t weak_function
-__getpid ()
+__getpid (void)
{
pid_t pid, ppid;
int orphaned;
diff --git a/sysdeps/mach/hurd/getclktck.c b/sysdeps/mach/hurd/getclktck.c
index 69be2cc352..2eea58df6a 100644
--- a/sysdeps/mach/hurd/getclktck.c
+++ b/sysdeps/mach/hurd/getclktck.c
@@ -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;
}
diff --git a/sysdeps/mach/hurd/getdtsz.c b/sysdeps/mach/hurd/getdtsz.c
index 16a0b78112..db5104c6b4 100644
--- a/sysdeps/mach/hurd/getdtsz.c
+++ b/sysdeps/mach/hurd/getdtsz.c
@@ -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;
diff --git a/sysdeps/mach/hurd/getegid.c b/sysdeps/mach/hurd/getegid.c
index 3ab46ed20d..dac104d006 100644
--- a/sysdeps/mach/hurd/getegid.c
+++ b/sysdeps/mach/hurd/getegid.c
@@ -22,7 +22,7 @@
/* Get the effective group ID of the calling process. */
gid_t
-__getegid ()
+__getegid (void)
{
error_t err;
gid_t egid;
diff --git a/sysdeps/mach/hurd/geteuid.c b/sysdeps/mach/hurd/geteuid.c
index e30c028b1c..32e59c2b1b 100644
--- a/sysdeps/mach/hurd/geteuid.c
+++ b/sysdeps/mach/hurd/geteuid.c
@@ -22,7 +22,7 @@
/* Get the effective user ID of the calling process. */
uid_t
-__geteuid ()
+__geteuid (void)
{
error_t err;
uid_t euid;
diff --git a/sysdeps/mach/hurd/getgid.c b/sysdeps/mach/hurd/getgid.c
index 9168994386..3c6397d2f4 100644
--- a/sysdeps/mach/hurd/getgid.c
+++ b/sysdeps/mach/hurd/getgid.c
@@ -22,7 +22,7 @@
/* Get the real group ID of the calling process. */
gid_t
-__getgid ()
+__getgid (void)
{
error_t err;
gid_t gid;
diff --git a/sysdeps/mach/hurd/gethostid.c b/sysdeps/mach/hurd/gethostid.c
index d1d0c6225d..4fc3016977 100644
--- a/sysdeps/mach/hurd/gethostid.c
+++ b/sysdeps/mach/hurd/gethostid.c
@@ -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. */
diff --git a/sysdeps/mach/hurd/getlogin.c b/sysdeps/mach/hurd/getlogin.c
index d88c043774..ce638afaf8 100644
--- a/sysdeps/mach/hurd/getlogin.c
+++ b/sysdeps/mach/hurd/getlogin.c
@@ -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;
diff --git a/sysdeps/mach/hurd/getpid.c b/sysdeps/mach/hurd/getpid.c
index e0a8865d4d..0c595f7df7 100644
--- a/sysdeps/mach/hurd/getpid.c
+++ b/sysdeps/mach/hurd/getpid.c
@@ -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;
diff --git a/sysdeps/mach/hurd/getppid.c b/sysdeps/mach/hurd/getppid.c
index c622ee9e68..9e35645a26 100644
--- a/sysdeps/mach/hurd/getppid.c
+++ b/sysdeps/mach/hurd/getppid.c
@@ -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;
diff --git a/sysdeps/mach/hurd/getuid.c b/sysdeps/mach/hurd/getuid.c
index fa9e2f8b40..6d9a707ca3 100644
--- a/sysdeps/mach/hurd/getuid.c
+++ b/sysdeps/mach/hurd/getuid.c
@@ -22,7 +22,7 @@
/* Get the real user ID of the calling process. */
uid_t
-__getuid ()
+__getuid (void)
{
error_t err;
uid_t uid;
diff --git a/sysdeps/mach/hurd/sync.c b/sysdeps/mach/hurd/sync.c
index f4ddf7076b..775182edab 100644
--- a/sysdeps/mach/hurd/sync.c
+++ b/sysdeps/mach/hurd/sync.c
@@ -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));
diff --git a/sysdeps/posix/clock.c b/sysdeps/posix/clock.c
index e762fa7f63..98fe3b8ba8 100644
--- a/sysdeps/posix/clock.c
+++ b/sysdeps/posix/clock.c
@@ -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;
diff --git a/sysdeps/unix/bsd/setsid.c b/sysdeps/unix/bsd/setsid.c
index 6c2f22c7a9..a42dc1dfd8 100644
--- a/sysdeps/unix/bsd/setsid.c
+++ b/sysdeps/unix/bsd/setsid.c
@@ -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;
diff --git a/sysdeps/unix/getpagesize.c b/sysdeps/unix/getpagesize.c
index 3d1fe8cb73..18b2503d1e 100644
--- a/sysdeps/unix/getpagesize.c
+++ b/sysdeps/unix/getpagesize.c
@@ -20,7 +20,7 @@
/* Return the system page size. */
int
-__getpagesize ()
+__getpagesize (void)
{
#ifdef EXEC_PAGESIZE
return EXEC_PAGESIZE;
diff --git a/sysdeps/unix/sysv/linux/getclktck.c b/sysdeps/unix/sysv/linux/getclktck.c
index 55e9f4f92f..47ec6c06db 100644
--- a/sysdeps/unix/sysv/linux/getclktck.c
+++ b/sysdeps/unix/sysv/linux/getclktck.c
@@ -25,7 +25,7 @@
/* Return frequency of times(). */
int
-__getclktck ()
+__getclktck (void)
{
return GLRO(dl_clktck) ?: SYSTEM_CLK_TCK;
}
diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c
index 2cc3bb65ac..6f551b7682 100644
--- a/sysdeps/unix/sysv/linux/gethostid.c
+++ b/sysdeps/unix/sysv/linux/gethostid.c
@@ -66,7 +66,7 @@ sethostid (id)
# include <netinet/in.h>
long int
-gethostid ()
+gethostid (void)
{
char hostname[MAXHOSTNAMELEN + 1];
size_t buflen;
diff --git a/sysdeps/unix/sysv/linux/getpagesize.c b/sysdeps/unix/sysv/linux/getpagesize.c
index 2a9184dad3..e1454158c4 100644
--- a/sysdeps/unix/sysv/linux/getpagesize.c
+++ b/sysdeps/unix/sysv/linux/getpagesize.c
@@ -24,7 +24,7 @@
/* Return the system page size. */
int
-__getpagesize ()
+__getpagesize (void)
{
assert (GLRO(dl_pagesize) != 0);
return GLRO(dl_pagesize);
diff --git a/sysdeps/unix/sysv/linux/getsysstats.c b/sysdeps/unix/sysv/linux/getsysstats.c
index 249bd19c39..88f28c9e19 100644
--- a/sysdeps/unix/sysv/linux/getsysstats.c
+++ b/sysdeps/unix/sysv/linux/getsysstats.c
@@ -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. */
diff --git a/time/clock.c b/time/clock.c
index d7a1f1491d..acd624fd3e 100644
--- a/time/clock.c
+++ b/time/clock.c
@@ -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;
diff --git a/time/tzset.c b/time/tzset.c
index 0064cb0133..4f8af8d523 100644
--- a/time/tzset.c
+++ b/time/tzset.c
@@ -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);