From 30b7917887cfa89b6dd63350df91aff2ce89af2a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 20 Jun 2012 10:57:49 +0000 Subject: [PATCH] -check misc return values --- src/fs/gnunet-auto-share.c | 9 +++++---- src/hostlist/hostlist-client.c | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/fs/gnunet-auto-share.c b/src/fs/gnunet-auto-share.c index 0ea0647e9..ec90ae2d5 100644 --- a/src/fs/gnunet-auto-share.c +++ b/src/fs/gnunet-auto-share.c @@ -231,7 +231,7 @@ load_state () error: GNUNET_free_non_null (fn); if (NULL != rh) - GNUNET_BIO_read_close (rh, &emsg); + (void) GNUNET_BIO_read_close (rh, &emsg); GNUNET_log (GNUNET_ERROR_TYPE_WARNING, _("Failed to load state: %s\n"), emsg); @@ -588,9 +588,10 @@ add_file (void *cls, sizeof (struct GNUNET_HashCode))) return GNUNET_OK; /* skip: we did this one already */ /* contents changed, need to re-do the directory... */ - GNUNET_CONTAINER_multihashmap_remove (work_finished, - &key, - wi); + GNUNET_assert (GNUNET_YES == + GNUNET_CONTAINER_multihashmap_remove (work_finished, + &key, + wi)); } else { diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 6be37fc78..4914573e3 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c @@ -1333,7 +1333,7 @@ load_hostlist_file () GNUNET_free_non_null (uri); emsg = NULL; - GNUNET_BIO_read_close (rh, &emsg); + (void) GNUNET_BIO_read_close (rh, &emsg); if (emsg != NULL) GNUNET_free (emsg); GNUNET_free (filename); -- 2.25.1