From 97adc8f61ab4d3f63b49224da708f633ff4474c3 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 1 Aug 2011 01:08:55 +0100 Subject: Remove some antiquated C constructs Fixes validate on amd64/Linux with: SRC_CC_OPTS += -Wmissing-parameter-type SRC_CC_OPTS += -Wold-style-declaration SRC_CC_OPTS += -Wold-style-definition --- cbits/HsUnix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cbits/HsUnix.c') diff --git a/cbits/HsUnix.c b/cbits/HsUnix.c index 037eb59..d74917b 100644 --- a/cbits/HsUnix.c +++ b/cbits/HsUnix.c @@ -24,10 +24,10 @@ void *__hsunix_rtldDefault (void) {return RTLD_DEFAULT;} #endif #ifdef SIGINFO -int __hsunix_SIGINFO() { return SIGINFO; } +int __hsunix_SIGINFO(void) { return SIGINFO; } #endif #ifdef SIGWINCH -int __hsunix_SIGWINCH() { return SIGWINCH; } +int __hsunix_SIGWINCH(void) { return SIGWINCH; } #endif // lstat is a macro on some platforms, so we need a wrapper: @@ -158,7 +158,7 @@ int __hsunix_unsetenv(const char *name) * (PATH_MAX is not defined on systems with unlimited path length, * e.g. the Hurd). */ -HsInt __hsunix_long_path_size() { +HsInt __hsunix_long_path_size(void) { #ifdef PATH_MAX return PATH_MAX; #else -- cgit v1.2.3