aboutsummaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk_handle-policy-version-changed.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anastasis/anastasis-gtk_handle-policy-version-changed.c')
-rw-r--r--src/anastasis/anastasis-gtk_handle-policy-version-changed.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-policy-version-changed.c b/src/anastasis/anastasis-gtk_handle-policy-version-changed.c
index 3f4a14a..63a50c4 100644
--- a/src/anastasis/anastasis-gtk_handle-policy-version-changed.c
+++ b/src/anastasis/anastasis-gtk_handle-policy-version-changed.c
@@ -147,12 +147,11 @@ update_policy (void)
{
json_t *args;
- args = json_pack ("{s:I, s:s}",
- "version",
- (json_int_t) version,
- "provider_url",
- provider_url);
- GNUNET_assert (NULL != args);
+ args = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_uint64 ("version",
+ version),
+ GNUNET_JSON_pack_string ("provider_url",
+ provider_url));
AG_ra = ANASTASIS_redux_action (AG_redux_state,
"change_version",
args,