mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ccnl: remove dead code
This commit is contained in:
parent
272fcc0fad
commit
51faf0b239
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user