diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-18 15:02:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-18 15:02:59 +0000 |
commit | e4794e7e4bc63d2023768e3b1017f19bd0d41c5f (patch) | |
tree | cc3573979a8e410998de3ca3d390ee0547d90faa /src/transport | |
parent | 2be168f3924a38f2d4f9071ccf53e6a032e9087d (diff) | |
download | gnunet-e4794e7e4bc63d2023768e3b1017f19bd0d41c5f.tar.gz gnunet-e4794e7e4bc63d2023768e3b1017f19bd0d41c5f.zip |
cleaning
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-nat-client.c | 3 | ||||
-rw-r--r-- | src/transport/gnunet-service-transport.c | 17 |
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 | ||
107 | static struct in_addr dummy; | 107 | static struct in_addr dummy; |
108 | 108 | ||
109 | static struct in_addr target; | ||
110 | |||
111 | static uint32_t port; | 109 | static uint32_t port; |
112 | 110 | ||
113 | static uint16_t | 111 | static uint16_t |
@@ -364,6 +362,7 @@ int | |||
364 | main (int argc, char *const *argv) | 362 | main (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 | |||
805 | static struct GNUNET_HELLO_Message *our_hello; | 805 | static 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 | */ | ||
811 | static unsigned int our_hello_version; | ||
812 | |||
813 | /** | ||
814 | * Our public key. | 808 | * Our public key. |
815 | */ | 809 | */ |
816 | static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded my_public_key; | 810 | static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded my_public_key; |
@@ -846,11 +840,6 @@ static struct TransportClient *clients; | |||
846 | static struct TransportPlugin *plugins; | 840 | static struct TransportPlugin *plugins; |
847 | 841 | ||
848 | /** | 842 | /** |
849 | * Our server. | ||
850 | */ | ||
851 | static struct GNUNET_SERVER_Handle *server; | ||
852 | |||
853 | /** | ||
854 | * Handle to peerinfo service. | 843 | * Handle to peerinfo service. |
855 | */ | 844 | */ |
856 | static struct GNUNET_PEERINFO_Handle *peerinfo; | 845 | static 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 | */ |
4891 | static void | 4879 | static void |
4892 | run (void *cls, | 4880 | run (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... */ |