summaryrefslogtreecommitdiff
path: root/src/bus-proxyd/bus-policy.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2014-09-20 15:59:40 +0200
committerDaniel Mack <daniel@zonque.org>2014-09-20 18:47:45 +0200
commite42bb8d4ed7c81abbe416ef30436f7b4b9e07bad (patch)
tree5cc4cd195011128648bcda49d6b9cbbb74895e1c /src/bus-proxyd/bus-policy.c
parent080edb3484dc3ecf8d914526fdd3090b40fdf5b6 (diff)
bus-policy: do not exit() from policy_dump()
This function is quite useful for debugging. Exiting from it seems unnecessary.
Diffstat (limited to 'src/bus-proxyd/bus-policy.c')
-rw-r--r--src/bus-proxyd/bus-policy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bus-proxyd/bus-policy.c b/src/bus-proxyd/bus-policy.c
index 227742ba74..4bc575f3ab 100644
--- a/src/bus-proxyd/bus-policy.c
+++ b/src/bus-proxyd/bus-policy.c
@@ -730,7 +730,7 @@ static void dump_hashmap_items(Hashmap *h) {
}
}
-noreturn void policy_dump(Policy *p) {
+void policy_dump(Policy *p) {
printf("%s Default Items:\n", draw_special_char(DRAW_ARROW));
dump_items(p->default_items, "\t");
@@ -743,8 +743,6 @@ noreturn void policy_dump(Policy *p) {
printf("%s Mandatory Items:\n", draw_special_char(DRAW_ARROW));
dump_items(p->mandatory_items, "\t");
-
- exit(0);
}
static const char* const policy_item_type_table[_POLICY_ITEM_TYPE_MAX] = {