gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r10661 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r10661 - gnunet/src/transport
Date: Fri, 19 Mar 2010 10:14:23 +0100

Author: grothoff
Date: 2010-03-19 10:14:23 +0100 (Fri, 19 Mar 2010)
New Revision: 10661

Modified:
   gnunet/src/transport/gnunet-service-transport.c
   gnunet/src/transport/plugin_transport_tcp.c
Log:
fix for 32-bit size_t negation

Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c     2010-03-19 08:57:37 UTC 
(rev 10660)
+++ gnunet/src/transport/gnunet-service-transport.c     2010-03-19 09:14:23 UTC 
(rev 10661)
@@ -1072,7 +1072,7 @@
   
   GNUNET_STATISTICS_update (stats,
                            gettext_noop ("# bytes pending with plugins"),
-                           -mq->message_buf_size,
+                           - (int64_t) mq->message_buf_size,
                            GNUNET_NO);
   if (result == GNUNET_OK)
     {
@@ -1278,7 +1278,7 @@
 #endif
          GNUNET_STATISTICS_update (stats,
                                    gettext_noop ("# bytes in message queue for 
other peers"),
-                                   -mq->message_buf_size,
+                                   - (int64_t) mq->message_buf_size,
                                    GNUNET_NO);
          GNUNET_STATISTICS_update (stats,
                                    gettext_noop ("# bytes discarded (no 
destination address available)"),
@@ -1334,7 +1334,7 @@
 #endif
   GNUNET_STATISTICS_update (stats,
                            gettext_noop ("# bytes in message queue for other 
peers"),
-                           -mq->message_buf_size,
+                           - (int64_t) mq->message_buf_size,
                            GNUNET_NO);
   GNUNET_STATISTICS_update (stats,
                            gettext_noop ("# bytes pending with plugins"),
@@ -2904,7 +2904,7 @@
     {
       GNUNET_STATISTICS_update (stats,
                                gettext_noop ("# bytes in message queue for 
other peers"),
-                               -mq->message_buf_size,
+                               - (int64_t) mq->message_buf_size,
                                GNUNET_NO);
       GNUNET_STATISTICS_update (stats,
                                gettext_noop ("# bytes discarded due to 
disconnect"),

Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2010-03-19 08:57:37 UTC (rev 
10660)
+++ gnunet/src/transport/plugin_transport_tcp.c 2010-03-19 09:14:23 UTC (rev 
10661)
@@ -376,7 +376,7 @@
 #endif
          GNUNET_STATISTICS_update (session->plugin->env->stats,
                                    gettext_noop ("# bytes currently in TCP 
buffers"),
-                                   -pm->message_size,
+                                   - (int64_t) pm->message_size,
                                    GNUNET_NO); 
          GNUNET_STATISTICS_update (session->plugin->env->stats,
                                    gettext_noop ("# bytes discarded by TCP 
(timeout)"),
@@ -404,7 +404,7 @@
                                   pm);
       GNUNET_STATISTICS_update (session->plugin->env->stats,
                                gettext_noop ("# bytes currently in TCP 
buffers"),
-                               -pm->message_size,
+                               - (int64_t) pm->message_size,
                                GNUNET_NO);       
       if (pm->transmit_cont != NULL)
         pm->transmit_cont (pm->transmit_cont_cls,
@@ -504,7 +504,7 @@
 #endif
       GNUNET_STATISTICS_update (session->plugin->env->stats,
                                gettext_noop ("# bytes currently in TCP 
buffers"),
-                               -pm->message_size,
+                               - (int64_t) pm->message_size,
                                GNUNET_NO);      
       GNUNET_STATISTICS_update (session->plugin->env->stats,
                                gettext_noop ("# bytes discarded by TCP 
(disconnect)"),





reply via email to

[Prev in Thread] Current Thread [Next in Thread]