[commit: unix] master: Remove some antiquated C constructs (97adc8f)
Ian Lynagh
igloo at earth.li
Mon Aug 1 03:03:20 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/unix
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/97adc8f61ab4d3f63b49224da708f633ff4474c3
>---------------------------------------------------------------
commit 97adc8f61ab4d3f63b49224da708f633ff4474c3
Author: Ian Lynagh <igloo at earth.li>
Date: Mon Aug 1 01:08:55 2011 +0100
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 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
More information about the Cvs-libraries
mailing list