make checker happy
authorChristian Grothoff <christian@grothoff.org>
Thu, 22 Apr 2010 09:10:46 +0000 (09:10 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 22 Apr 2010 09:10:46 +0000 (09:10 +0000)
TODO
src/core/gnunet-service-core.c
src/fs/gnunet-service-fs.c
src/util/scheduler.c

diff --git a/TODO b/TODO
index dcc13d8e975225f2ebe85d20cfaaf1ee84695d14..6eccfe2f348a8ceb6dea95a8175a6629d59a4cf6 100644 (file)
--- a/TODO
+++ b/TODO
@@ -163,7 +163,7 @@ Optimizations:
     no longer filter those for outgoing (helps with loopback testing
     and keeps the code clean), but we should filter strictly *impossible*
     incoming addresses!  This is for efficiency, not correctness.
-  - should use hash map to look up Neighbours
+  - should use hash map to look up Neighbours (service AND plugins!)
 * HOSTLIST:
   - 'server' uses 'GNUNET_PEERINFO_iterate', should probably switch to notification API
     (for more instant / up-to-date hostlists at lower cost)
index aa4d4afb1554a2f98376db0e45b71b1fa96a1519..e5a0db5eccf1e28965c9fcf336ae4622eed3828d 100644 (file)
@@ -3792,6 +3792,7 @@ run (void *cls,
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                   _("Could not access PEERINFO service.  Exiting.\n"));
       GNUNET_SCHEDULER_shutdown (s);
+      GNUNET_free (keyfile);
       return;
     }
   my_private_key = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile);
index 0d1d3d9e41a16ab3b59a41be896f62de7ff98820..2c3e6e666521720c59f80e36c0110629c3c7c11f 100644 (file)
@@ -1649,6 +1649,7 @@ forward_request_task (void *cls,
   /* (3) reserve reply bandwidth */
   cp = GNUNET_CONTAINER_multihashmap_get (connected_peers,
                                          &psc.target.hashPubKey);
+  GNUNET_assert (NULL != cp);
   pr->irc = GNUNET_CORE_peer_change_preference (sched, cfg,
                                                &psc.target,
                                                GNUNET_CONSTANTS_SERVICE_TIMEOUT, 
index 0e40d184da4316c5fc1bd7e65ff344d361fd5546..c46c895009e565f247de1efbbda22cf9a2cdf8cf 100644 (file)
@@ -504,7 +504,7 @@ run_ready (struct GNUNET_SCHEDULER_Handle *sched)
       if (sched->current_priority != pos->priority)
        {
          sched->current_priority = pos->priority;
-         GNUNET_OS_set_process_priority (0, pos->priority);
+         (void) GNUNET_OS_set_process_priority (0, pos->priority);
        }
       sched->active_task = pos;
       tc.sched = sched;