summaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-07-06 10:30:27 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-07-06 10:30:27 +0200
commitab9b5dd1113e889a63b03d764d298da7d6d962f1 (patch)
treee69b301754b918c8ec85c9dfdde8cfdddb9d17aa /src/transport
parent80ee82d9f984ffe30fa77f30d153e60a383709a6 (diff)
-fix: codepath fixes
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/test_transport_api_reliability.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c
index 058d7d8bf..deb943956 100644
--- a/src/transport/test_transport_api_reliability.c
+++ b/src/transport/test_transport_api_reliability.c
@@ -93,10 +93,9 @@ get_size (unsigned int iter)
/* FreeBSD/OSX etc. Unix DGRAMs do not work
* with large messages */
if (0 == strcmp ("unix", ccc->test_plugin))
- ret = sizeof(struct GNUNET_TRANSPORT_TESTING_TestMessage) + (ret % 1024);
+ return sizeof(struct GNUNET_TRANSPORT_TESTING_TestMessage) + (ret % 1024);
#endif
- ret = sizeof(struct GNUNET_TRANSPORT_TESTING_TestMessage) + (ret % 60000);
- return ret;
+ return sizeof(struct GNUNET_TRANSPORT_TESTING_TestMessage) + (ret % 60000);
}