Ignore:
Timestamp:
05/12/11 12:32:36 (9 years ago)
Author:
schlocke
Message:

iterator refactoring: iterators now on stack instead heap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-http-helpers.c

    r5225 r5226  
    794794struct s_reader *get_reader_by_label(char *lbl){
    795795    struct s_reader *rdr;
    796     LL_ITER *itr = ll_iter_create(configured_readers);
    797     while((rdr = ll_iter_next(itr)))
     796    LL_ITER itr = ll_iter_create(configured_readers);
     797    while((rdr = ll_iter_next(&itr)))
    798798      if (strcmp(lbl, rdr->label) == 0) break;
    799     ll_iter_release(itr);
    800799    return rdr;
    801800}
Note: See TracChangeset for help on using the changeset viewer.