aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-19 09:14:23 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-19 09:14:23 +0000
commitfed172b6ccffc79e8415bb4e8a35984209a32ea2 (patch)
treec3f540c537a70a7a6e322ee5520f485efac62f08 /src/transport/plugin_transport_tcp.c
parent7a58522b1b0fb846aca53c71fb6a2424a1d558b2 (diff)
downloadgnunet-fed172b6ccffc79e8415bb4e8a35984209a32ea2.tar.gz
gnunet-fed172b6ccffc79e8415bb4e8a35984209a32ea2.zip
fix for 32-bit size_t negation
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 2e1d02257..48ad370fa 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -376,7 +376,7 @@ do_transmit (void *cls, size_t size, void *buf)
376#endif 376#endif
377 GNUNET_STATISTICS_update (session->plugin->env->stats, 377 GNUNET_STATISTICS_update (session->plugin->env->stats,
378 gettext_noop ("# bytes currently in TCP buffers"), 378 gettext_noop ("# bytes currently in TCP buffers"),
379 -pm->message_size, 379 - (int64_t) pm->message_size,
380 GNUNET_NO); 380 GNUNET_NO);
381 GNUNET_STATISTICS_update (session->plugin->env->stats, 381 GNUNET_STATISTICS_update (session->plugin->env->stats,
382 gettext_noop ("# bytes discarded by TCP (timeout)"), 382 gettext_noop ("# bytes discarded by TCP (timeout)"),
@@ -404,7 +404,7 @@ do_transmit (void *cls, size_t size, void *buf)
404 pm); 404 pm);
405 GNUNET_STATISTICS_update (session->plugin->env->stats, 405 GNUNET_STATISTICS_update (session->plugin->env->stats,
406 gettext_noop ("# bytes currently in TCP buffers"), 406 gettext_noop ("# bytes currently in TCP buffers"),
407 -pm->message_size, 407 - (int64_t) pm->message_size,
408 GNUNET_NO); 408 GNUNET_NO);
409 if (pm->transmit_cont != NULL) 409 if (pm->transmit_cont != NULL)
410 pm->transmit_cont (pm->transmit_cont_cls, 410 pm->transmit_cont (pm->transmit_cont_cls,
@@ -504,7 +504,7 @@ disconnect_session (struct Session *session)
504#endif 504#endif
505 GNUNET_STATISTICS_update (session->plugin->env->stats, 505 GNUNET_STATISTICS_update (session->plugin->env->stats,
506 gettext_noop ("# bytes currently in TCP buffers"), 506 gettext_noop ("# bytes currently in TCP buffers"),
507 -pm->message_size, 507 - (int64_t) pm->message_size,
508 GNUNET_NO); 508 GNUNET_NO);
509 GNUNET_STATISTICS_update (session->plugin->env->stats, 509 GNUNET_STATISTICS_update (session->plugin->env->stats,
510 gettext_noop ("# bytes discarded by TCP (disconnect)"), 510 gettext_noop ("# bytes discarded by TCP (disconnect)"),