correct spelling curent to current

pull/2/head
yuqing 2014-08-10 13:46:00 +08:00
parent 1b80270f90
commit ea7c5d24bb
2 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ struct nio_thread_data
struct fast_task_info
{
IOEventEntry event;
IOEventEntry event; //must first
char client_ip[IP_ADDRESS_SIZE];
void *arg; //extra argument pointer
char *data; //buffer for write or recv

View File

@ -19,20 +19,20 @@ static void deal_ioevents(IOEventPoller *ioevent, const int count)
static void deal_timeouts(FastTimerEntry *head)
{
FastTimerEntry *entry;
FastTimerEntry *curent;
FastTimerEntry *current;
IOEventEntry *pEventEntry;
entry = head->next;
while (entry != NULL)
{
curent = entry;
current = entry;
entry = entry->next;
pEventEntry = (IOEventEntry *)curent->data;
pEventEntry = (IOEventEntry *)current->data;
if (pEventEntry != NULL)
{
pEventEntry->callback(pEventEntry->fd, IOEVENT_TIMEOUT,
curent->data);
current->data);
}
}
}