-check misc return values
authorChristian Grothoff <christian@grothoff.org>
Wed, 20 Jun 2012 10:57:49 +0000 (10:57 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 20 Jun 2012 10:57:49 +0000 (10:57 +0000)
src/fs/gnunet-auto-share.c
src/hostlist/hostlist-client.c

index 0ea0647e92ba11c15f328912483cbc7b2f989eae..ec90ae2d55979d261f4183b05837a35dd5b40066 100644 (file)
@@ -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
   {
index 6be37fc78d58132357a2b10480513d6d779a312e..4914573e38ad14c71e997b63241e5231439ee2e9 100644 (file)
@@ -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);