coverity, doxygen cleanup stuff
authorNathan S. Evans <evans@in.tum.de>
Wed, 24 Feb 2010 11:55:26 +0000 (11:55 +0000)
committerNathan S. Evans <evans@in.tum.de>
Wed, 24 Feb 2010 11:55:26 +0000 (11:55 +0000)
src/testing/testing.c
src/testing/testing_group.c

index be3e96509e625a69b82589418eaae2666efddec1..1e9f6cf5edae3e26afc8c9cf2416d1aadc1d0b83 100644 (file)
@@ -789,9 +789,10 @@ notify_connect_result (void *cls,
  * Success, connection is up.  Signal client our success.
  *
  * @param cls our "struct ConnectContext"
- * @param size number of bytes available in buf
- * @param buf where to copy the message, NULL on error
- * @return number of bytes copied to buf
+ * @param peer identity of the peer that has connected
+ * @param latency the round trip latency of the connection to this peer
+ * @param distance distance the transport level distance to this peer
+ *
  */
 static void
 connect_notify (void *cls, const struct GNUNET_PeerIdentity * peer, struct GNUNET_TIME_Relative latency,
index d20a6412ff0c2f74abfc0d5626c16abf5c38d157..e27a4120dd0c086d25b0743149b6937741ba157b 100644 (file)
@@ -785,7 +785,9 @@ create_and_copy_friend_files (struct GNUNET_TESTING_PeerGroup *pg)
         {
           GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                     _("No SERVICEHOME specified in peer configuration, can't copy friends file!\n"));
-          unlink(mytemp);
+          if (unlink(mytemp) != 0)
+            GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                                _("Couldn't remove friends file %s!\n"), mytemp);
          GNUNET_free (mytemp);
           break;
         }