Skip to content

Commit

Permalink
Better name
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Nov 21, 2017
1 parent 1f7ceeb commit 8ba6046
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/include/event.h
Expand Up @@ -188,7 +188,7 @@ typedef union {
} fr_event_funcs_t;

int fr_event_list_num_fds(fr_event_list_t *el);
int fr_event_list_num_elements(fr_event_list_t *el);
int fr_event_list_num_timers(fr_event_list_t *el);
int fr_event_list_kq(fr_event_list_t *el);
int fr_event_list_time(struct timeval *when, fr_event_list_t *el);

Expand Down
4 changes: 2 additions & 2 deletions src/lib/util/event.c
Expand Up @@ -364,7 +364,7 @@ int fr_event_list_num_fds(fr_event_list_t *el)
* @param[in] el to return timer events for.
* @return number of timer events.
*/
int fr_event_list_num_elements(fr_event_list_t *el)
int fr_event_list_num_timers(fr_event_list_t *el)
{
if (unlikely(!el)) return -1;

Expand Down Expand Up @@ -1900,7 +1900,7 @@ int main(int argc, char **argv)
fr_event_timer_insert(NULL, el, &array[i], print_time, &array[i]);
}

while (fr_event_list_num_elements(el)) {
while (fr_event_list_num_timers(el)) {
gettimeofday(&now, NULL);
when = now;
if (!fr_event_timer_run(el, &when)) {
Expand Down

0 comments on commit 8ba6046

Please sign in to comment.