Changeset 99c2c69e in mainline for uspace/srv/locsrv/category.c
- Timestamp:
- 2013-09-13T00:36:30Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67fbd5e
- Parents:
- 7f84430 (diff), 11d41be5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/locsrv/category.c
r7f84430 r99c2c69e 73 73 74 74 size_t pos = 0; 75 list_foreach(cdir->categories, item) { 76 category_t *cat = 77 list_get_instance(item, category_t, cat_list); 78 75 list_foreach(cdir->categories, cat_list, category_t, cat) { 79 76 if (pos < buf_cnt) 80 77 id_buf[pos] = cat->id; … … 116 113 117 114 /* Verify that category does not contain this service yet. */ 118 list_foreach(cat->svc_memb, item) { 119 svc_categ_t *memb = list_get_instance(item, svc_categ_t, 120 cat_link); 115 list_foreach(cat->svc_memb, cat_link, svc_categ_t, memb) { 121 116 if (memb->svc == svc) { 122 117 return EEXIST; … … 154 149 assert(fibril_mutex_is_locked(&cdir->mutex)); 155 150 156 list_foreach(cdir->categories, item) { 157 category_t *cat = list_get_instance(item, category_t, 158 cat_list); 151 list_foreach(cdir->categories, cat_list, category_t, cat) { 159 152 if (cat->id == catid) 160 153 return cat; … … 169 162 assert(fibril_mutex_is_locked(&cdir->mutex)); 170 163 171 list_foreach(cdir->categories, item) { 172 category_t *cat = list_get_instance(item, category_t, 173 cat_list); 164 list_foreach(cdir->categories, cat_list, category_t, cat) { 174 165 if (str_cmp(cat->name, name) == 0) 175 166 return cat; … … 197 188 198 189 size_t pos = 0; 199 list_foreach(cat->svc_memb, item) { 200 svc_categ_t *memb = 201 list_get_instance(item, svc_categ_t, cat_link); 202 190 list_foreach(cat->svc_memb, cat_link, svc_categ_t, memb) { 203 191 if (pos < buf_cnt) 204 192 id_buf[pos] = memb->svc->id;
Note:
See TracChangeset
for help on using the changeset viewer.