| 261 |
262 |
| 262 return ret; |
263 return ret; |
| 263 } |
264 } |
| 264 |
265 |
| 265 static void remove_list_entries(PwdStore *s, const char *id) { |
266 static void remove_list_entries(PwdStore *s, const char *id) { |
| 266 CxIterator i = cxListMutIterator(s->locations); |
267 CxIterator i = cxListIterator(s->locations); |
| 267 cx_foreach(PwdIndexEntry*, ie, i) { |
268 cx_foreach(PwdIndexEntry*, ie, i) { |
| 268 if(!strcmp(ie->id, id)) { |
269 if(!strcmp(ie->id, id)) { |
| 269 cxIteratorFlagRemoval(i); |
270 cxIteratorFlagRemoval(i); |
| 270 cxIteratorNext(i); |
271 cxIteratorNext(i); |
| 271 break; |
272 break; |
| 272 } |
273 } |
| 273 } |
274 } |
| 274 i = cxListMutIterator(s->noloc); |
275 i = cxListIterator(s->noloc); |
| 275 cx_foreach(PwdIndexEntry*, ie, i) { |
276 cx_foreach(PwdIndexEntry*, ie, i) { |
| 276 if(!strcmp(ie->id, id)) { |
277 if(!strcmp(ie->id, id)) { |
| 277 cxIteratorFlagRemoval(i); |
278 cxIteratorFlagRemoval(i); |
| 278 cxIteratorNext(i); |
279 cxIteratorNext(i); |
| 279 break; |
280 break; |