application/config.c

changeset 49
2f71f4ee247a
parent 7
905ac52c910f
child 50
9c25e2616bfa
equal deleted inserted replaced
48:ae61523bce20 49:2f71f4ee247a
434 /* 434 /*
435 * The list secrets->location contains urls or repo names as 435 * The list secrets->location contains urls or repo names as
436 * location strings. We need a list, that contains only urls 436 * location strings. We need a list, that contains only urls
437 */ 437 */
438 CxList *locations = cxLinkedListCreate(cxDefaultAllocator, (cx_compare_func)cmp_url_cred_entry, CX_STORE_POINTERS); 438 CxList *locations = cxLinkedListCreate(cxDefaultAllocator, (cx_compare_func)cmp_url_cred_entry, CX_STORE_POINTERS);
439 locations->simple_destructor = (cx_destructor_func)free_cred_location; 439 cxDefineDestructor(locations, free_cred_location);
440 CxIterator i = cxListIterator(secrets->locations); 440 CxIterator i = cxListIterator(secrets->locations);
441 cx_foreach(PwdIndexEntry*, e, i) { 441 cx_foreach(PwdIndexEntry*, e, i) {
442 CxIterator entry_iter = cxListIterator(e->locations); 442 CxIterator entry_iter = cxListIterator(e->locations);
443 cx_foreach(char *, loc, entry_iter) { 443 cx_foreach(char *, loc, entry_iter) {
444 cxmutstr rpath; 444 cxmutstr rpath;

mercurial