aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_main-window-search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_main-window-search.c')
-rw-r--r--src/fs/gnunet-fs-gtk_main-window-search.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/fs/gnunet-fs-gtk_main-window-search.c b/src/fs/gnunet-fs-gtk_main-window-search.c
index 438a9517..fed27001 100644
--- a/src/fs/gnunet-fs-gtk_main-window-search.c
+++ b/src/fs/gnunet-fs-gtk_main-window-search.c
@@ -364,22 +364,19 @@ abort_pseu_lookup (struct PseuLookupContext *lctx)
364 * operation. 364 * operation.
365 * 365 *
366 * @param cls closure 366 * @param cls closure
367 * @param success #GNUNET_SYSERR on failure (including timeout/queue 367 * @param success the error code
368 * drop/failure to validate) #GNUNET_NO if content was already there or not
369 * found #GNUNET_YES (or other positive value) on success
370 * @param emsg NULL on success, otherwise an error message
371 */ 368 */
372static void 369static void
373store_continuation (void *cls, int32_t success, const char *emsg) 370store_continuation (void *cls, enum GNUNET_ErrorCode success)
374{ 371{
375 struct PseuLookupContext *lctx = cls; 372 struct PseuLookupContext *lctx = cls;
376 373
377 lctx->qe = NULL; 374 lctx->qe = NULL;
378 if (NULL != emsg) 375 if (GNUNET_EC_NONE != success)
379 { 376 {
380 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 377 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
381 _ ("Failed to save record: %s\n"), 378 _ ("Failed to save record: %s\n"),
382 emsg); 379 GNUNET_ErrorCode_get_hint (success));
383 beep (); 380 beep ();
384 } 381 }
385 abort_pseu_lookup (lctx); 382 abort_pseu_lookup (lctx);