Skip to content
Snippets Groups Projects
Commit 51faf0b2 authored by Christian Mehlis's avatar Christian Mehlis
Browse files

ccnl: remove dead code

parent 272fcc0f
No related branches found
No related tags found
No related merge requests found
......@@ -312,20 +312,11 @@ void ccnl_timeout_callback(void *ptr)
int ccnl_io_loop(struct ccnl_relay_s *ccnl)
{
int i, maxfd = -1;
if (ccnl->ifcount == 0) {
DEBUGMSG(1, "no socket to work with, not good, quitting\n");
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");
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.
Finish editing this message first!
Please register or to comment