Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/locsrv/category.c

    rfeeac0d r32d96e1  
    7373
    7474        size_t pos = 0;
    75         list_foreach(cdir->categories, cat_list, category_t, cat) {
     75        list_foreach(cdir->categories, item) {
     76                category_t *cat =
     77                    list_get_instance(item, category_t, cat_list);
     78
    7679                if (pos < buf_cnt)
    7780                        id_buf[pos] = cat->id;
     
    113116
    114117        /* Verify that category does not contain this service yet. */
    115         list_foreach(cat->svc_memb, cat_link, svc_categ_t, memb) {
     118        list_foreach(cat->svc_memb, item) {
     119                svc_categ_t *memb = list_get_instance(item, svc_categ_t,
     120                    cat_link);
    116121                if (memb->svc == svc) {
    117122                        return EEXIST;
     
    149154        assert(fibril_mutex_is_locked(&cdir->mutex));
    150155
    151         list_foreach(cdir->categories, cat_list, category_t, cat) {
     156        list_foreach(cdir->categories, item) {
     157                category_t *cat = list_get_instance(item, category_t,
     158                    cat_list);
    152159                if (cat->id == catid)
    153160                        return cat;
     
    162169        assert(fibril_mutex_is_locked(&cdir->mutex));
    163170
    164         list_foreach(cdir->categories, cat_list, category_t, cat) {
     171        list_foreach(cdir->categories, item) {
     172                category_t *cat = list_get_instance(item, category_t,
     173                    cat_list);
    165174                if (str_cmp(cat->name, name) == 0)
    166175                        return cat;
     
    188197
    189198        size_t pos = 0;
    190         list_foreach(cat->svc_memb, cat_link, svc_categ_t, memb) {
     199        list_foreach(cat->svc_memb, item) {
     200                svc_categ_t *memb =
     201                    list_get_instance(item, svc_categ_t, cat_link);
     202
    191203                if (pos < buf_cnt)
    192204                        id_buf[pos] = memb->svc->id;
Note: See TracChangeset for help on using the changeset viewer.