aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-18 15:02:59 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-18 15:02:59 +0000
commite4794e7e4bc63d2023768e3b1017f19bd0d41c5f (patch)
treecc3573979a8e410998de3ca3d390ee0547d90faa /src/core
parent2be168f3924a38f2d4f9071ccf53e6a032e9087d (diff)
downloadgnunet-e4794e7e4bc63d2023768e3b1017f19bd0d41c5f.tar.gz
gnunet-e4794e7e4bc63d2023768e3b1017f19bd0d41c5f.zip
cleaning
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-service-core.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 34b3511a8..7fcb03094 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -669,11 +669,6 @@ static struct GNUNET_PEERINFO_Handle *peerinfo;
669const struct GNUNET_CONFIGURATION_Handle *cfg; 669const struct GNUNET_CONFIGURATION_Handle *cfg;
670 670
671/** 671/**
672 * Our server.
673 */
674static struct GNUNET_SERVER_Handle *server;
675
676/**
677 * Transport service. 672 * Transport service.
678 */ 673 */
679static struct GNUNET_TRANSPORT_Handle *transport; 674static struct GNUNET_TRANSPORT_Handle *transport;
@@ -3808,13 +3803,13 @@ cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
3808 * 3803 *
3809 * @param cls closure 3804 * @param cls closure
3810 * @param s scheduler to use 3805 * @param s scheduler to use
3811 * @param serv the initialized server 3806 * @param server the initialized server
3812 * @param c configuration to use 3807 * @param c configuration to use
3813 */ 3808 */
3814static void 3809static void
3815run (void *cls, 3810run (void *cls,
3816 struct GNUNET_SCHEDULER_Handle *s, 3811 struct GNUNET_SCHEDULER_Handle *s,
3817 struct GNUNET_SERVER_Handle *serv, 3812 struct GNUNET_SERVER_Handle *server,
3818 const struct GNUNET_CONFIGURATION_Handle *c) 3813 const struct GNUNET_CONFIGURATION_Handle *c)
3819{ 3814{
3820 static const struct GNUNET_SERVER_MessageHandler handlers[] = { 3815 static const struct GNUNET_SERVER_MessageHandler handlers[] = {
@@ -3880,7 +3875,6 @@ run (void *cls,
3880 GNUNET_CRYPTO_hash (&my_public_key, 3875 GNUNET_CRYPTO_hash (&my_public_key,
3881 sizeof (my_public_key), &my_identity.hashPubKey); 3876 sizeof (my_public_key), &my_identity.hashPubKey);
3882 /* setup notification */ 3877 /* setup notification */
3883 server = serv;
3884 notifier = GNUNET_SERVER_notification_context_create (server, 3878 notifier = GNUNET_SERVER_notification_context_create (server,
3885 MAX_NOTIFY_QUEUE); 3879 MAX_NOTIFY_QUEUE);
3886 GNUNET_SERVER_disconnect_notify (server, &handle_client_disconnect, NULL); 3880 GNUNET_SERVER_disconnect_notify (server, &handle_client_disconnect, NULL);