aboutsummaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk_pe-delete-policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anastasis/anastasis-gtk_pe-delete-policy.c')
-rw-r--r--src/anastasis/anastasis-gtk_pe-delete-policy.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/anastasis/anastasis-gtk_pe-delete-policy.c b/src/anastasis/anastasis-gtk_pe-delete-policy.c
index 5fdfb74..3be8fb9 100644
--- a/src/anastasis/anastasis-gtk_pe-delete-policy.c
+++ b/src/anastasis/anastasis-gtk_pe-delete-policy.c
@@ -36,13 +36,13 @@ AG_delete_policy (guint pindex)
{
json_t *args;
- args = json_pack ("{s:I}",
- "policy_index",
- (json_int_t) pindex);
+ args = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_uint64 ("policy_index",
+ (json_int_t) pindex));
AG_ra = ANASTASIS_redux_action (AG_redux_state,
- "delete_policy",
- args,
- &AG_action_cb,
- NULL);
+ "delete_policy",
+ args,
+ &AG_action_cb,
+ NULL);
json_decref (args);
}