Changes in uspace/srv/net/inetsrv/addrobj.c [feeac0d:30c5d13] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/addrobj.c
rfeeac0d r30c5d13 115 115 fibril_mutex_lock(&addr_list_lock); 116 116 117 list_foreach(addr_list, addr_list, inet_addrobj_t, naddr) { 117 list_foreach(addr_list, link) { 118 inet_addrobj_t *naddr = list_get_instance(link, 119 inet_addrobj_t, addr_list); 120 118 121 switch (find) { 119 122 case iaf_net: … … 155 158 name, ilink->svc_name); 156 159 157 list_foreach(addr_list, addr_list, inet_addrobj_t, naddr) { 160 list_foreach(addr_list, link) { 161 inet_addrobj_t *naddr = list_get_instance(link, 162 inet_addrobj_t, addr_list); 163 158 164 if (naddr->ilink == ilink && str_cmp(naddr->name, name) == 0) { 159 165 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find_by_name_locked: found %p", … … 200 206 fibril_mutex_lock(&addr_list_lock); 201 207 202 list_foreach(addr_list, addr_list, inet_addrobj_t, naddr) { 208 list_foreach(addr_list, link) { 209 inet_addrobj_t *naddr = list_get_instance(link, 210 inet_addrobj_t, addr_list); 211 203 212 if (naddr->id == id) { 204 213 fibril_mutex_unlock(&addr_list_lock); … … 268 277 269 278 i = 0; 270 list_foreach(addr_list, addr_list, inet_addrobj_t, addr) { 279 list_foreach(addr_list, link) { 280 inet_addrobj_t *addr = list_get_instance(link, 281 inet_addrobj_t, addr_list); 282 271 283 id_list[i++] = addr->id; 272 284 }
Note:
See TracChangeset
for help on using the changeset viewer.