aboutsummaryrefslogtreecommitdiff
path: root/src/transport
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/transport
parent2be168f3924a38f2d4f9071ccf53e6a032e9087d (diff)
downloadgnunet-e4794e7e4bc63d2023768e3b1017f19bd0d41c5f.tar.gz
gnunet-e4794e7e4bc63d2023768e3b1017f19bd0d41c5f.zip
cleaning
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-nat-client.c3
-rw-r--r--src/transport/gnunet-service-transport.c17
2 files changed, 3 insertions, 17 deletions
diff --git a/src/transport/gnunet-nat-client.c b/src/transport/gnunet-nat-client.c
index 56bbf65b5..8648a4679 100644
--- a/src/transport/gnunet-nat-client.c
+++ b/src/transport/gnunet-nat-client.c
@@ -106,8 +106,6 @@ static int rawsock;
106 106
107static struct in_addr dummy; 107static struct in_addr dummy;
108 108
109static struct in_addr target;
110
111static uint32_t port; 109static uint32_t port;
112 110
113static uint16_t 111static uint16_t
@@ -364,6 +362,7 @@ int
364main (int argc, char *const *argv) 362main (int argc, char *const *argv)
365{ 363{
366 struct in_addr external; 364 struct in_addr external;
365 struct in_addr target;
367 uid_t uid; 366 uid_t uid;
368 367
369 if (-1 == (rawsock = make_raw_socket())) 368 if (-1 == (rawsock = make_raw_socket()))
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index 2d6a1cbb0..f3fc93a7a 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -805,12 +805,6 @@ struct CheckHelloValidatedContext
805static struct GNUNET_HELLO_Message *our_hello; 805static struct GNUNET_HELLO_Message *our_hello;
806 806
807/** 807/**
808 * "version" of "our_hello". Used to see if a given neighbour has
809 * already been sent the latest version of our HELLO message.
810 */
811static unsigned int our_hello_version;
812
813/**
814 * Our public key. 808 * Our public key.
815 */ 809 */
816static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded my_public_key; 810static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded my_public_key;
@@ -846,11 +840,6 @@ static struct TransportClient *clients;
846static struct TransportPlugin *plugins; 840static struct TransportPlugin *plugins;
847 841
848/** 842/**
849 * Our server.
850 */
851static struct GNUNET_SERVER_Handle *server;
852
853/**
854 * Handle to peerinfo service. 843 * Handle to peerinfo service.
855 */ 844 */
856static struct GNUNET_PEERINFO_Handle *peerinfo; 845static struct GNUNET_PEERINFO_Handle *peerinfo;
@@ -1853,7 +1842,6 @@ refresh_hello ()
1853 1842
1854 GNUNET_free_non_null (our_hello); 1843 GNUNET_free_non_null (our_hello);
1855 our_hello = hello; 1844 our_hello = hello;
1856 our_hello_version++;
1857 GNUNET_PEERINFO_add_peer (peerinfo, our_hello); 1845 GNUNET_PEERINFO_add_peer (peerinfo, our_hello);
1858 npos = neighbours; 1846 npos = neighbours;
1859 while (npos != NULL) 1847 while (npos != NULL)
@@ -4885,13 +4873,13 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
4885 * 4873 *
4886 * @param cls closure 4874 * @param cls closure
4887 * @param s scheduler to use 4875 * @param s scheduler to use
4888 * @param serv the initialized server 4876 * @param server the initialized server
4889 * @param c configuration to use 4877 * @param c configuration to use
4890 */ 4878 */
4891static void 4879static void
4892run (void *cls, 4880run (void *cls,
4893 struct GNUNET_SCHEDULER_Handle *s, 4881 struct GNUNET_SCHEDULER_Handle *s,
4894 struct GNUNET_SERVER_Handle *serv, 4882 struct GNUNET_SERVER_Handle *server,
4895 const struct GNUNET_CONFIGURATION_Handle *c) 4883 const struct GNUNET_CONFIGURATION_Handle *c)
4896{ 4884{
4897 static const struct GNUNET_SERVER_MessageHandler handlers[] = { 4885 static const struct GNUNET_SERVER_MessageHandler handlers[] = {
@@ -4984,7 +4972,6 @@ run (void *cls,
4984 GNUNET_CRYPTO_hash (&my_public_key, 4972 GNUNET_CRYPTO_hash (&my_public_key,
4985 sizeof (my_public_key), &my_identity.hashPubKey); 4973 sizeof (my_public_key), &my_identity.hashPubKey);
4986 /* setup notification */ 4974 /* setup notification */
4987 server = serv;
4988 GNUNET_SERVER_disconnect_notify (server, 4975 GNUNET_SERVER_disconnect_notify (server,
4989 &client_disconnect_notification, NULL); 4976 &client_disconnect_notification, NULL);
4990 /* load plugins... */ 4977 /* load plugins... */