Skip to content
Snippets Groups Projects
Commit aa6246cd authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

Merge pull request #937 from mehlis/ccnl-dead-code

ccnl: remove dead code
parents a6fd5317 51faf0b2
No related branches found
No related tags found
No related merge requests found
...@@ -312,20 +312,11 @@ void ccnl_timeout_callback(void *ptr) ...@@ -312,20 +312,11 @@ void ccnl_timeout_callback(void *ptr)
int ccnl_io_loop(struct ccnl_relay_s *ccnl) int ccnl_io_loop(struct ccnl_relay_s *ccnl)
{ {
int i, maxfd = -1;
if (ccnl->ifcount == 0) { if (ccnl->ifcount == 0) {
DEBUGMSG(1, "no socket to work with, not good, quitting\n"); DEBUGMSG(1, "no socket to work with, not good, quitting\n");
return -1; return -1;
} }
for (i = 0; i < ccnl->ifcount; i++)
if (ccnl->ifs[i].sock > maxfd) {
maxfd = ccnl->ifs[i].sock;
}
maxfd++;
DEBUGMSG(1, "starting main event and IO loop\n"); DEBUGMSG(1, "starting main event and IO loop\n");
if (msg_init_queue(msg_buffer_relay, RELAY_MSG_BUFFER_SIZE) != 0) { if (msg_init_queue(msg_buffer_relay, RELAY_MSG_BUFFER_SIZE) != 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment