aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-06 14:44:08 +0000
committerChristian Grothoff <christian@grothoff.org>2016-05-06 14:44:08 +0000
commite8cf81fdb3fdaef59b49da8f6e952a3225ab326e (patch)
tree4e5f75d44a9121b32895fdfc5a4177052a7d923d /src/transport/gnunet-service-transport_neighbours.c
parentae8cb91d9961899075a892a3110204bc139c2eb6 (diff)
downloadgnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.tar.gz
gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.zip
fixing compiler warnings
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 65428ef2a..9d1c9459e 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -1296,12 +1296,12 @@ transmit_send_continuation (void *cls,
1296 if (bytes_in_send_queue < mq->message_buf_size) 1296 if (bytes_in_send_queue < mq->message_buf_size)
1297 { 1297 {
1298 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1298 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1299 "Bytes_in_send_queue `%u', Message_size %u, result: %s, payload %u, on wire %u\n", 1299 "Bytes_in_send_queue `%llu', Message_size %u, result: %s, payload %u, on wire %u\n",
1300 bytes_in_send_queue, 1300 bytes_in_send_queue,
1301 mq->message_buf_size, 1301 (unsigned int) mq->message_buf_size,
1302 (GNUNET_OK == success) ? "OK" : "FAIL", 1302 (GNUNET_OK == success) ? "OK" : "FAIL",
1303 size_payload, 1303 (unsigned int) size_payload,
1304 physical); 1304 (unsigned int) physical);
1305 GNUNET_break (0); 1305 GNUNET_break (0);
1306 } 1306 }
1307 1307
@@ -1325,7 +1325,7 @@ transmit_send_continuation (void *cls,
1325 "Sending message to `%s' of type %u with %u bytes was a %s\n", 1325 "Sending message to `%s' of type %u with %u bytes was a %s\n",
1326 GNUNET_i2s (receiver), 1326 GNUNET_i2s (receiver),
1327 ntohs (((struct GNUNET_MessageHeader *) mq->message_buf)->type), 1327 ntohs (((struct GNUNET_MessageHeader *) mq->message_buf)->type),
1328 mq->message_buf_size, 1328 (unsigned int) mq->message_buf_size,
1329 (success == GNUNET_OK) ? "success" : "FAILURE"); 1329 (success == GNUNET_OK) ? "success" : "FAILURE");
1330 if (NULL != mq->cont) 1330 if (NULL != mq->cont)
1331 mq->cont (mq->cont_cls, 1331 mq->cont (mq->cont_cls,
@@ -1401,7 +1401,7 @@ try_transmission_to_peer (struct NeighbourMapEntry *n)
1401 1401
1402 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1402 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1403 "Giving message with %u bytes to plugin session %p\n", 1403 "Giving message with %u bytes to plugin session %p\n",
1404 mq->message_buf_size, 1404 (unsigned int) mq->message_buf_size,
1405 n->primary_address.session); 1405 n->primary_address.session);
1406 (void) send_with_session (n, 1406 (void) send_with_session (n,
1407 mq->message_buf, 1407 mq->message_buf,
@@ -1773,7 +1773,7 @@ GST_neighbours_send (const struct GNUNET_PeerIdentity *target,
1773 1773
1774 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1774 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1775 "Enqueueing %u bytes to send to peer %s\n", 1775 "Enqueueing %u bytes to send to peer %s\n",
1776 msg_size, 1776 (unsigned int) msg_size,
1777 GNUNET_i2s (target)); 1777 GNUNET_i2s (target));
1778 GNUNET_CONTAINER_DLL_insert_tail (n->messages_head, 1778 GNUNET_CONTAINER_DLL_insert_tail (n->messages_head,
1779 n->messages_tail, 1779 n->messages_tail,
@@ -2117,7 +2117,7 @@ inbound_bw_tracker_update (void *cls)
2117 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2117 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2118 "New inbound delay for peer `%s' is %llu ms\n", 2118 "New inbound delay for peer `%s' is %llu ms\n",
2119 GNUNET_i2s (&n->id), 2119 GNUNET_i2s (&n->id),
2120 delay.rel_value_us / 1000); 2120 (unsigned long long) delay.rel_value_us / 1000LL);
2121 papi->update_inbound_delay (papi->cls, 2121 papi->update_inbound_delay (papi->cls,
2122 &n->id, 2122 &n->id,
2123 n->primary_address.session, 2123 n->primary_address.session,
@@ -3244,11 +3244,9 @@ GST_neighbours_session_terminated (const struct GNUNET_PeerIdentity *peer,
3244 /* The session used to send the SYN terminated: 3244 /* The session used to send the SYN terminated:
3245 * this implies a connect error*/ 3245 * this implies a connect error*/
3246 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 3246 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
3247 "Failed to send SYN in %s with `%s' %p: session terminated\n", 3247 "Failed to send SYN in CONNECT_SENT with `%s' %p: session terminated\n",
3248 "CONNECT_SENT",
3249 GST_plugins_a2s (n->primary_address.address), 3248 GST_plugins_a2s (n->primary_address.address),
3250 n->primary_address.session, 3249 n->primary_address.session);
3251 GNUNET_i2s (peer));
3252 3250
3253 /* Destroy the address since it cannot be used */ 3251 /* Destroy the address since it cannot be used */
3254 unset_primary_address (n); 3252 unset_primary_address (n);
@@ -3274,11 +3272,9 @@ GST_neighbours_session_terminated (const struct GNUNET_PeerIdentity *peer,
3274 break; 3272 break;
3275 case GNUNET_TRANSPORT_PS_RECONNECT_SENT: 3273 case GNUNET_TRANSPORT_PS_RECONNECT_SENT:
3276 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 3274 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
3277 "Failed to send SYN in %s with `%s' %p: session terminated\n", 3275 "Failed to send SYN in RECONNECT_SENT with `%s' %p: session terminated\n",
3278 "RECONNECT_SENT",
3279 GST_plugins_a2s (n->primary_address.address), 3276 GST_plugins_a2s (n->primary_address.address),
3280 n->primary_address.session, 3277 n->primary_address.session);
3281 GNUNET_i2s (peer));
3282 /* Destroy the address since it cannot be used */ 3278 /* Destroy the address since it cannot be used */
3283 unset_primary_address (n); 3279 unset_primary_address (n);
3284 set_state_and_timeout (n, 3280 set_state_and_timeout (n,