Changes in uspace/srv/locsrv/category.c [feeac0d:32d96e1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/locsrv/category.c
rfeeac0d r32d96e1 73 73 74 74 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 76 79 if (pos < buf_cnt) 77 80 id_buf[pos] = cat->id; … … 113 116 114 117 /* 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); 116 121 if (memb->svc == svc) { 117 122 return EEXIST; … … 149 154 assert(fibril_mutex_is_locked(&cdir->mutex)); 150 155 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); 152 159 if (cat->id == catid) 153 160 return cat; … … 162 169 assert(fibril_mutex_is_locked(&cdir->mutex)); 163 170 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); 165 174 if (str_cmp(cat->name, name) == 0) 166 175 return cat; … … 188 197 189 198 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 191 203 if (pos < buf_cnt) 192 204 id_buf[pos] = memb->svc->id;
Note:
See TracChangeset
for help on using the changeset viewer.