COMP: Fix problems when doing -Werror

This commit is contained in:
Andy Cedilnik 2004-10-07 09:28:18 -04:00
parent c03fa90b5b
commit b727f31589
1 changed files with 4 additions and 5 deletions

View File

@ -43,6 +43,7 @@ main ()
#endif #endif
int socket; int socket;
int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK); int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
return 0;
} }
#endif #endif
@ -394,7 +395,7 @@ int main()
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
void main(void) { int main(void) {
struct addrinfo hints, *ai; struct addrinfo hints, *ai;
int error; int error;
@ -406,11 +407,9 @@ void main(void) {
#endif #endif
error = getaddrinfo("127.0.0.1", "8080", &hints, &ai); error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
if (error) { if (error) {
exit(1); return 1;
}
else {
exit(0);
} }
return 0;
} }
#endif #endif
#ifdef _FILE_OFFSET_BITS #ifdef _FILE_OFFSET_BITS