diff options
author | Ian Lynagh <igloo@earth.li> | 2011-08-01 01:08:55 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-08-01 01:08:55 +0100 |
commit | 97adc8f61ab4d3f63b49224da708f633ff4474c3 (patch) | |
tree | 08019f1ff7b567b7bccb0464545ddef3059ec85e /cbits/HsUnix.c | |
parent | 0223d86351610c1569dffbd23c5e176746ff6ed0 (diff) |
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
Diffstat (limited to 'cbits/HsUnix.c')
-rw-r--r-- | cbits/HsUnix.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |