diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-23 14:17:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-23 14:17:32 +0000 |
commit | 85ab049726deae170d98610499ec44c0d029a425 (patch) | |
tree | 8edb37ba1378bcf165eb38abf4dcb77a2bca427f /src/transport/gnunet-service-transport.c | |
parent | 6d14d67719b6057939b1dd948e4e74663a1c19e8 (diff) | |
download | gnunet-85ab049726deae170d98610499ec44c0d029a425.tar.gz gnunet-85ab049726deae170d98610499ec44c0d029a425.zip |
-fix casts
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index f54d30e21..9399ece7d 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -148,7 +148,9 @@ transmit_our_hello (void *cls, const struct GNUNET_PeerIdentity *target, | |||
148 | { | 148 | { |
149 | const struct GNUNET_MessageHeader *hello = cls; | 149 | const struct GNUNET_MessageHeader *hello = cls; |
150 | 150 | ||
151 | GST_neighbours_send (target, (const char *) hello, ntohs (hello->size), | 151 | GST_neighbours_send (target, |
152 | hello, | ||
153 | ntohs (hello->size), | ||
152 | hello_expiration, NULL, NULL); | 154 | hello_expiration, NULL, NULL); |
153 | } | 155 | } |
154 | 156 | ||
@@ -160,7 +162,8 @@ transmit_our_hello (void *cls, const struct GNUNET_PeerIdentity *target, | |||
160 | * @param hello new HELLO | 162 | * @param hello new HELLO |
161 | */ | 163 | */ |
162 | static void | 164 | static void |
163 | process_hello_update (void *cls, const struct GNUNET_MessageHeader *hello) | 165 | process_hello_update (void *cls, |
166 | const struct GNUNET_MessageHeader *hello) | ||
164 | { | 167 | { |
165 | GST_clients_broadcast (hello, GNUNET_NO); | 168 | GST_clients_broadcast (hello, GNUNET_NO); |
166 | GST_neighbours_iterate (&transmit_our_hello, (void *) hello); | 169 | GST_neighbours_iterate (&transmit_our_hello, (void *) hello); |