Native cleanup

This commit is contained in:
M66B 2016-01-28 08:20:15 +01:00
parent 4135fd6441
commit 3801d79448
1 changed files with 0 additions and 19 deletions

View File

@ -1875,16 +1875,6 @@ int open_udp_socket(const struct arguments *args, const struct udp_session *cur)
*/
}
// Set blocking
/*
int flags = fcntl(sock, F_GETFL, 0);
if (flags < 0 || fcntl(sock, F_SETFL, flags & ~O_NONBLOCK) < 0) {
log_android(ANDROID_LOG_ERROR, "fcntl socket ~O_NONBLOCK error %d: %s",
errno, strerror(errno));
return -1;
}
*/
return sock;
}
@ -1934,15 +1924,6 @@ int open_tcp_socket(const struct arguments *args, const struct tcp_session *cur)
return -1;
}
// Set blocking
/*
if (fcntl(sock, F_SETFL, flags & ~O_NONBLOCK) < 0) {
log_android(ANDROID_LOG_ERROR, "fcntl socket ~O_NONBLOCK error %d: %s",
errno, strerror(errno));
return -1;
}
*/
return sock;
}