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 | |
parent | 6d14d67719b6057939b1dd948e4e74663a1c19e8 (diff) | |
download | gnunet-85ab049726deae170d98610499ec44c0d029a425.tar.gz gnunet-85ab049726deae170d98610499ec44c0d029a425.zip |
-fix casts
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 7 | ||||
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 4 |
2 files changed, 7 insertions, 4 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); |
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index d54cd6e9e..cabc6811b 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -1284,7 +1284,7 @@ client_connect_get (struct Session *s) | |||
1284 | curl_easy_setopt (s->client_get, CURLOPT_TIMEOUT, 0); | 1284 | curl_easy_setopt (s->client_get, CURLOPT_TIMEOUT, 0); |
1285 | curl_easy_setopt (s->client_get, CURLOPT_PRIVATE, s); | 1285 | curl_easy_setopt (s->client_get, CURLOPT_PRIVATE, s); |
1286 | curl_easy_setopt (s->client_get, CURLOPT_CONNECTTIMEOUT_MS, | 1286 | curl_easy_setopt (s->client_get, CURLOPT_CONNECTTIMEOUT_MS, |
1287 | (long) HTTP_CLIENT_NOT_VALIDATED_TIMEOUT.rel_value_us / 1000LL); | 1287 | (long) (HTTP_CLIENT_NOT_VALIDATED_TIMEOUT.rel_value_us / 1000LL)); |
1288 | curl_easy_setopt (s->client_get, CURLOPT_BUFFERSIZE, | 1288 | curl_easy_setopt (s->client_get, CURLOPT_BUFFERSIZE, |
1289 | 2 * GNUNET_SERVER_MAX_MESSAGE_SIZE); | 1289 | 2 * GNUNET_SERVER_MAX_MESSAGE_SIZE); |
1290 | #if CURL_TCP_NODELAY | 1290 | #if CURL_TCP_NODELAY |
@@ -1364,7 +1364,7 @@ client_connect_put (struct Session *s) | |||
1364 | curl_easy_setopt (s->client_put, CURLOPT_TIMEOUT, 0); | 1364 | curl_easy_setopt (s->client_put, CURLOPT_TIMEOUT, 0); |
1365 | curl_easy_setopt (s->client_put, CURLOPT_PRIVATE, s); | 1365 | curl_easy_setopt (s->client_put, CURLOPT_PRIVATE, s); |
1366 | curl_easy_setopt (s->client_put, CURLOPT_CONNECTTIMEOUT_MS, | 1366 | curl_easy_setopt (s->client_put, CURLOPT_CONNECTTIMEOUT_MS, |
1367 | (long) HTTP_CLIENT_NOT_VALIDATED_TIMEOUT.rel_value_us / 1000LL); | 1367 | (long) (HTTP_CLIENT_NOT_VALIDATED_TIMEOUT.rel_value_us / 1000LL)); |
1368 | curl_easy_setopt (s->client_put, CURLOPT_BUFFERSIZE, | 1368 | curl_easy_setopt (s->client_put, CURLOPT_BUFFERSIZE, |
1369 | 2 * GNUNET_SERVER_MAX_MESSAGE_SIZE); | 1369 | 2 * GNUNET_SERVER_MAX_MESSAGE_SIZE); |
1370 | #if CURL_TCP_NODELAY | 1370 | #if CURL_TCP_NODELAY |