void ast_console_toggle_loglevel(int fd, int level, int state) { int x; for (x = 0;x < AST_MAX_CONNECTS; x++) { if (fd == consoles[x].fd) { consoles[x].levels[level] = state; return; } } }