Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
b727f315
Commit
b727f315
authored
Oct 07, 2004
by
Andy Cedilnik
Browse files
COMP: Fix problems when doing -Werror
parent
c03fa90b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/CTest/Curl/CMake/CurlTests.c
View file @
b727f315
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment