if (obj == NULL)
return 0;
- int count = 0;
- pingobj_iter_t *iter = obj->head;
- while(iter) {
- count++;
- iter = iter->next;
- }
- return count;
+ int count = 0;
+ pingobj_iter_t *iter = obj->head;
+ while (iter) {
+ count++;
+ iter = iter->next;
+ }
+ return count;
}
int ping_iterator_get_info (pingobj_iter_t *iter, int info,
if (context->window != NULL)
{
- werase (context->window);
- wrefresh (context->window);
+ werase (context->window);
+ wrefresh (context->window);
delwin (context->window);
context->window = NULL;
}