diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-11-04 14:00:32 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-11-04 14:00:32 +0000 |
commit | 35ae75e2d0f26ad0e25861f3c4a5c4c005fd1378 (patch) | |
tree | d0ab9329fcbefe360d9d14e2ace21a6b3396dfe9 /src/fragmentation | |
parent | 99545d48451fe00589106195cb13c63c5f56b893 (diff) |
curly wars / auto-indentation
git-svn-id: https://gnunet.org/svn/gnunet@18000 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/fragmentation')
-rw-r--r-- | src/fragmentation/fragmentation.c | 2 | ||||
-rw-r--r-- | src/fragmentation/test_fragmentation.c | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/fragmentation/fragmentation.c b/src/fragmentation/fragmentation.c index ef3a57a87b..47b8a1929a 100644 --- a/src/fragmentation/fragmentation.c +++ b/src/fragmentation/fragmentation.c @@ -152,7 +152,7 @@ transmit_next (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) size = ntohs (fc->msg->size); if (bit == size / (fc->mtu - sizeof (struct FragmentHeader))) fsize = - (size % (fc->mtu - sizeof (struct FragmentHeader))) + + (size % (fc->mtu - sizeof (struct FragmentHeader))) + sizeof (struct FragmentHeader); else fsize = fc->mtu; diff --git a/src/fragmentation/test_fragmentation.c b/src/fragmentation/test_fragmentation.c index 8f0be87a5d..1f7a1776a1 100644 --- a/src/fragmentation/test_fragmentation.c +++ b/src/fragmentation/test_fragmentation.c @@ -65,8 +65,7 @@ static struct GNUNET_FRAGMENT_Context *frags[NUM_MSGS]; static GNUNET_SCHEDULER_TaskIdentifier shutdown_task; static void -do_shutdown (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc) +do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { unsigned int i; @@ -80,7 +79,7 @@ do_shutdown (void *cls, continue; GNUNET_FRAGMENT_context_destroy (frags[i]); frags[i] = NULL; - } + } } @@ -103,8 +102,7 @@ proc_msgs (void *cls, const struct GNUNET_MessageHeader *hdr) fprintf (stderr, "."); #endif /* tolerate 10% loss, i.e. due to duplicate fragment IDs */ - if ( (total >= NUM_MSGS - (NUM_MSGS / 10)) && - (ret != 0) ) + if ((total >= NUM_MSGS - (NUM_MSGS / 10)) && (ret != 0)) { if (GNUNET_SCHEDULER_NO_TASK == shutdown_task) shutdown_task = GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); |