return NULL;
}
- silc_fsm_sema_init(&pending->wait_reply, &thread->fsm, 0);
+ silc_fsm_event_init(&pending->wait_reply, &thread->fsm, 0);
pending->refcnt = 1;
pending->cmd_ident = cmd_ident;
/* Signal */
pending->reply = cmd;
- SILC_FSM_SEMA_POST(&pending->wait_reply);
+ SILC_FSM_EVENT_SIGNAL(&pending->wait_reply);
/* Remove from pending */
silc_hash_table_del_by_context(thread->server->pending_commands,
/* Statistics */
thread->server->stat.commands_received++;
- return timeout ? SILC_FSM_WAIT : SILC_FSM_CONTINUE;
+ return timeout ? SILC_FSM_WAIT : return SILC_FSM_CONTINUE;
}
/********************************* WHOIS ************************************/