Changed a while loop to a for

This commit is contained in:
Pierre Pronchery 2004-07-21 23:33:46 +00:00
parent f00928ec13
commit f08a6678da

View File

@ -134,11 +134,8 @@ static void slist_apply(SList * slist, int (*func)(void *, void *), void * user)
{
SListCell * slc = *slist;
while(slc != NULL)
{
for(slc = *slist; slc != NULL; slc = slc->next)
func(slc->data, user);
slc = slc->next;
}
}
static int slist_insert_sorted(SList * slist, void * data,