aboutsummaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk_handle-expiration-change.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anastasis/anastasis-gtk_handle-expiration-change.c')
-rw-r--r--src/anastasis/anastasis-gtk_handle-expiration-change.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-expiration-change.c b/src/anastasis/anastasis-gtk_handle-expiration-change.c
index 99b5412..7c698b7 100644
--- a/src/anastasis/anastasis-gtk_handle-expiration-change.c
+++ b/src/anastasis/anastasis-gtk_handle-expiration-change.c
@@ -94,10 +94,9 @@ expiration_year_spin_button_value_changed_cb (
if (0 == expiration.abs_value_us)
return; /* failured */
(void) GNUNET_TIME_round_abs (&expiration);
- arg = json_pack ("{s:o}",
- "expiration",
- GNUNET_JSON_from_time_abs (expiration));
- GNUNET_assert (NULL != arg);
+ arg = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_time_abs ("expiration",
+ (expiration)));
AG_freeze ();
AG_ra = ANASTASIS_redux_action (AG_redux_state,
"update_expiration",