X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbus-proxyd%2Fbus-policy.c;h=2df4bf7204a660e5fc7cd3f7723f6c3a62dcb789;hp=af3b3abbf9100053c2a763fab11552dd26963f01;hb=e76ae7ee960e837f855f104f000e2ef14790374e;hpb=445743035336bf9691d200b8417685186ef9b5f9 diff --git a/src/bus-proxyd/bus-policy.c b/src/bus-proxyd/bus-policy.c index af3b3abbf..2df4bf720 100644 --- a/src/bus-proxyd/bus-policy.c +++ b/src/bus-proxyd/bus-policy.c @@ -557,8 +557,6 @@ void policy_free(Policy *p) { LIST_REMOVE(items, first, i); policy_item_free(i); } - - policy_item_free(i); } while ((first = hashmap_steal_first(p->group_items))) { @@ -567,8 +565,6 @@ void policy_free(Policy *p) { LIST_REMOVE(items, first, i); policy_item_free(i); } - - policy_item_free(i); } hashmap_free(p->user_items); @@ -646,18 +642,18 @@ static void dump_hashmap_items(Hashmap *h) { } } -void policy_dump(Policy *p) { +noreturn void policy_dump(Policy *p) { - printf("→ Default Items:\n"); + printf("%s Default Items:\n", draw_special_char(DRAW_ARROW)); dump_items(p->default_items); - printf("→ Mandatory Items:\n"); + printf("%s Mandatory Items:\n", draw_special_char(DRAW_ARROW)); dump_items(p->mandatory_items); - printf("→ Group Items:\n"); + printf("%s Group Items:\n", draw_special_char(DRAW_ARROW)); dump_hashmap_items(p->group_items); - printf("→ User Items:\n"); + printf("%s User Items:\n", draw_special_char(DRAW_ARROW)); dump_hashmap_items(p->user_items); exit(0); }