summaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk_handle-core-secret-changed.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-14 19:53:29 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-14 19:53:34 +0100
commita398d5ee9672e6d773cccae03513a812b7230cd2 (patch)
tree85d83ad3dea55b0402168dda2d22ed393cc8b11d /src/anastasis/anastasis-gtk_handle-core-secret-changed.c
parent6cbfc3b9b5b91fe903e8b22e5bab59ae9d8ad7ab (diff)
downloadanastasis-gtk-a398d5ee9672e6d773cccae03513a812b7230cd2.tar.gz
anastasis-gtk-a398d5ee9672e6d773cccae03513a812b7230cd2.tar.bz2
anastasis-gtk-a398d5ee9672e6d773cccae03513a812b7230cd2.zip
-fix FTBFS for Taler protocol v11
Diffstat (limited to 'src/anastasis/anastasis-gtk_handle-core-secret-changed.c')
-rw-r--r--src/anastasis/anastasis-gtk_handle-core-secret-changed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-core-secret-changed.c b/src/anastasis/anastasis-gtk_handle-core-secret-changed.c
index 5498077..906ef29 100644
--- a/src/anastasis/anastasis-gtk_handle-core-secret-changed.c
+++ b/src/anastasis/anastasis-gtk_handle-core-secret-changed.c
@@ -37,7 +37,7 @@ anastasis_gtk_enter_secret_textbuffer_changed_cb (GtkTextBuffer *tb,
gpointer user_data)
{
json_t *arguments;
- struct GNUNET_TIME_Absolute expiration;
+ struct GNUNET_TIME_Timestamp expiration;
GtkTextIter start;
GtkTextIter end;
const char *text;
@@ -54,7 +54,7 @@ anastasis_gtk_enter_secret_textbuffer_changed_cb (GtkTextBuffer *tb,
return;
AG_in_secret_editing = true;
expiration = AG_get_desired_expiration ();
- if (0 == expiration.abs_value_us)
+ if (GNUNET_TIME_absolute_is_zero (expiration.abs_time))
return; /* failured */
if ( (NULL == text) ||
(0 == strlen (text)) )
@@ -75,7 +75,7 @@ anastasis_gtk_enter_secret_textbuffer_changed_cb (GtkTextBuffer *tb,
"mime",
"text/plain",
"expiration",
- GNUNET_JSON_from_time_abs (expiration));
+ GNUNET_JSON_from_timestamp (expiration));
GNUNET_assert (NULL != arguments);
AG_freeze ();
AG_ra = ANASTASIS_redux_action (AG_redux_state,