summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl/CMake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-07 13:28:18 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-07 13:28:18 (GMT)
commitb727f3158935a597b8e6f8944c60eec18a9b846c (patch)
tree1cdf880c6fb1782a8f4bbd3e012aecd22f4cc784 /Source/CTest/Curl/CMake
parentc03fa90b5b30b27f2b627cc6161d3dc3287783a2 (diff)
downloadCMake-b727f3158935a597b8e6f8944c60eec18a9b846c.zip
CMake-b727f3158935a597b8e6f8944c60eec18a9b846c.tar.gz
CMake-b727f3158935a597b8e6f8944c60eec18a9b846c.tar.bz2
COMP: Fix problems when doing -Werror
Diffstat (limited to 'Source/CTest/Curl/CMake')
-rw-r--r--Source/CTest/Curl/CMake/CurlTests.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/CTest/Curl/CMake/CurlTests.c b/Source/CTest/Curl/CMake/CurlTests.c
index 981f9f3..5254716 100644
--- a/Source/CTest/Curl/CMake/CurlTests.c
+++ b/Source/CTest/Curl/CMake/CurlTests.c
@@ -43,6 +43,7 @@ main ()
#endif
int socket;
int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
+ return 0;
}
#endif
@@ -394,7 +395,7 @@ int main()
#include <sys/types.h>
#include <sys/socket.h>
-void main(void) {
+int main(void) {
struct addrinfo hints, *ai;
int error;
@@ -406,11 +407,9 @@ void main(void) {
#endif
error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
if (error) {
- exit(1);
- }
- else {
- exit(0);
+ return 1;
}
+ return 0;
}
#endif
#ifdef _FILE_OFFSET_BITS