[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34876 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34876 - gnunet/src/transport |
Date: |
Sat, 10 Jan 2015 20:06:21 +0100 |
Author: grothoff
Date: 2015-01-10 20:06:21 +0100 (Sat, 10 Jan 2015)
New Revision: 34876
Modified:
gnunet/src/transport/test_transport_address_switch.c
Log:
-clean up testcase
Modified: gnunet/src/transport/test_transport_address_switch.c
===================================================================
--- gnunet/src/transport/test_transport_address_switch.c 2015-01-10
18:56:41 UTC (rev 34875)
+++ gnunet/src/transport/test_transport_address_switch.c 2015-01-10
19:06:21 UTC (rev 34876)
@@ -424,10 +424,9 @@
{
char *cbuf = buf;
struct TestMessage hdr;
- unsigned int ret;
th = NULL;
- if (buf == NULL )
+ if (buf == NULL)
{
GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
"Timeout occurred while waiting for transmit_ready for message\n");
@@ -446,9 +445,7 @@
hdr.header.type = htons (MTYPE);
hdr.num = htonl (0);
memcpy (&cbuf[0], &hdr, sizeof(struct TestMessage));
- ret += sizeof(struct TestMessage);
memset (&cbuf[sizeof(struct TestMessage)], '0', MSIZE - sizeof(struct
TestMessage));
- ret = MSIZE;
#if VERBOSE
char *receiver_s = GNUNET_strdup (GNUNET_i2s (&receiver->id));
@@ -466,10 +463,10 @@
(p1_switch_attempts == p1_switch_fail + p1_switch_success) &&
(p2_switch_attempts == p2_switch_fail + p2_switch_success) )
{
- bytes_sent_after_switch += ret;
+ bytes_sent_after_switch += MSIZE;
}
- return ret;
+ return MSIZE;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34876 - gnunet/src/transport,
gnunet <=