svn: 1562
@@ -635,9 +635,6 @@ do_boot(int idx, char *by, char *reason)
port_t
listen_all(port_t lport, bool off)
{
- if (!lport)
- return 0;
-
int idx = (-1);
port_t port, realport;
@@ -580,9 +580,9 @@ static int ctcp_CHAT(char *nick, char *uhost, struct userrec *u, char *object, c
return BIND_RET_BREAK;
}
- int ix = -1;
+ int ix = -1, i = 0;
- for (int i = 0; i < dcc_total; i++) {
+ for (i = 0; i < dcc_total; i++) {
if (dcc[i].type && (dcc[i].type->flags & DCT_LISTEN) && (!strcmp(dcc[i].nick, "(telnet)")))
ix = i;