From 60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Sat, 8 Jun 2013 00:22:23 +0000 Subject: Use (void) in no-arguments function definitions. --- ports/ChangeLog.ia64 | 5 +++++ ports/ChangeLog.m68k | 5 +++++ ports/sysdeps/unix/sysv/linux/ia64/getpagesize.c | 2 +- ports/sysdeps/unix/sysv/linux/m68k/getpagesize.c | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) (limited to 'ports') 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 + + * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize): Use + (void) in function definition. + 2013-06-07 Joseph Myers * 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 + + * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize): Use + (void) in function definition. + 2013-06-05 Joseph Myers * 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; -- cgit v1.2.3