gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r22141 - in gnunet/src: fs hostlist


From: gnunet
Subject: [GNUnet-SVN] r22141 - in gnunet/src: fs hostlist
Date: Wed, 20 Jun 2012 12:57:49 +0200

Author: grothoff
Date: 2012-06-20 12:57:49 +0200 (Wed, 20 Jun 2012)
New Revision: 22141

Modified:
   gnunet/src/fs/gnunet-auto-share.c
   gnunet/src/hostlist/hostlist-client.c
Log:
-check misc return values

Modified: gnunet/src/fs/gnunet-auto-share.c
===================================================================
--- gnunet/src/fs/gnunet-auto-share.c   2012-06-20 10:55:25 UTC (rev 22140)
+++ gnunet/src/fs/gnunet-auto-share.c   2012-06-20 10:57:49 UTC (rev 22141)
@@ -231,7 +231,7 @@
  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 @@
                     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
   {

Modified: gnunet/src/hostlist/hostlist-client.c
===================================================================
--- gnunet/src/hostlist/hostlist-client.c       2012-06-20 10:55:25 UTC (rev 
22140)
+++ gnunet/src/hostlist/hostlist-client.c       2012-06-20 10:57:49 UTC (rev 
22141)
@@ -1333,7 +1333,7 @@
 
   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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]