aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-04-22 09:10:46 +0000
committerChristian Grothoff <christian@grothoff.org>2010-04-22 09:10:46 +0000
commit19c38c3b0f128be0d3c7cf5462e155ef26c93661 (patch)
tree3c4e5753c3a322f339a7148fbee48a99f448ef82
parent8d4f8f0579b286b4ace045f1b1a8cd6d03094baa (diff)
downloadgnunet-19c38c3b0f128be0d3c7cf5462e155ef26c93661.tar.gz
gnunet-19c38c3b0f128be0d3c7cf5462e155ef26c93661.zip
make checker happy
-rw-r--r--TODO2
-rw-r--r--src/core/gnunet-service-core.c1
-rw-r--r--src/fs/gnunet-service-fs.c1
-rw-r--r--src/util/scheduler.c2
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:
163 no longer filter those for outgoing (helps with loopback testing 163 no longer filter those for outgoing (helps with loopback testing
164 and keeps the code clean), but we should filter strictly *impossible* 164 and keeps the code clean), but we should filter strictly *impossible*
165 incoming addresses! This is for efficiency, not correctness. 165 incoming addresses! This is for efficiency, not correctness.
166 - should use hash map to look up Neighbours 166 - should use hash map to look up Neighbours (service AND plugins!)
167* HOSTLIST: 167* HOSTLIST:
168 - 'server' uses 'GNUNET_PEERINFO_iterate', should probably switch to notification API 168 - 'server' uses 'GNUNET_PEERINFO_iterate', should probably switch to notification API
169 (for more instant / up-to-date hostlists at lower cost) 169 (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,
3792 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 3792 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
3793 _("Could not access PEERINFO service. Exiting.\n")); 3793 _("Could not access PEERINFO service. Exiting.\n"));
3794 GNUNET_SCHEDULER_shutdown (s); 3794 GNUNET_SCHEDULER_shutdown (s);
3795 GNUNET_free (keyfile);
3795 return; 3796 return;
3796 } 3797 }
3797 my_private_key = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile); 3798 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,
1649 /* (3) reserve reply bandwidth */ 1649 /* (3) reserve reply bandwidth */
1650 cp = GNUNET_CONTAINER_multihashmap_get (connected_peers, 1650 cp = GNUNET_CONTAINER_multihashmap_get (connected_peers,
1651 &psc.target.hashPubKey); 1651 &psc.target.hashPubKey);
1652 GNUNET_assert (NULL != cp);
1652 pr->irc = GNUNET_CORE_peer_change_preference (sched, cfg, 1653 pr->irc = GNUNET_CORE_peer_change_preference (sched, cfg,
1653 &psc.target, 1654 &psc.target,
1654 GNUNET_CONSTANTS_SERVICE_TIMEOUT, 1655 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)
504 if (sched->current_priority != pos->priority) 504 if (sched->current_priority != pos->priority)
505 { 505 {
506 sched->current_priority = pos->priority; 506 sched->current_priority = pos->priority;
507 GNUNET_OS_set_process_priority (0, pos->priority); 507 (void) GNUNET_OS_set_process_priority (0, pos->priority);
508 } 508 }
509 sched->active_task = pos; 509 sched->active_task = pos;
510 tc.sched = sched; 510 tc.sched = sched;