From: Christian Grothoff Date: Wed, 20 Jun 2012 10:57:49 +0000 (+0000) Subject: -check misc return values X-Git-Tag: initial-import-from-subversion-38251~12942 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=30b7917887cfa89b6dd63350df91aff2ce89af2a;p=oweals%2Fgnunet.git -check misc return values --- 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);