From 19c38c3b0f128be0d3c7cf5462e155ef26c93661 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 22 Apr 2010 09:10:46 +0000 Subject: [PATCH] make checker happy --- TODO | 2 +- src/core/gnunet-service-core.c | 1 + src/fs/gnunet-service-fs.c | 1 + src/util/scheduler.c | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index dcc13d8e9..6eccfe2f3 100644 --- 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) diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index aa4d4afb1..e5a0db5ec 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c @@ -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); diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index 0d1d3d9e4..2c3e6e666 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c @@ -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, diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 0e40d184d..c46c89500 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c @@ -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; -- 2.25.1