diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-19 22:23:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-19 22:23:23 +0000 |
commit | 2e024bd67fb584c40958e96b2b26cd9c2c5311b7 (patch) | |
tree | ab319c42521b5fb1a323ce5ac0d4f091b872e319 /src/core | |
parent | a21395e6167baf219d4dee67f40206ff1ee1eb0d (diff) | |
download | gnunet-2e024bd67fb584c40958e96b2b26cd9c2c5311b7.tar.gz gnunet-2e024bd67fb584c40958e96b2b26cd9c2c5311b7.zip |
avoid changing API for now
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core_api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index af78ab4f9..658ee9aaa 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -696,7 +696,9 @@ handle_send_ready (void *cls, | |||
696 | ret = th->get_message (th->get_message_cls, | 696 | ret = th->get_message (th->get_message_cls, |
697 | th->msize, | 697 | th->msize, |
698 | &sm[1]); | 698 | &sm[1]); |
699 | GNUNET_assert (ret == th->msize); /* NOTE: API change! */ | 699 | sm->header.size = htons (ret); |
700 | th->msize = ret; | ||
701 | // GNUNET_assert (ret == th->msize); /* NOTE: API change! */ | ||
700 | delay = GNUNET_TIME_absolute_get_duration (th->request_time); | 702 | delay = GNUNET_TIME_absolute_get_duration (th->request_time); |
701 | overdue = GNUNET_TIME_absolute_get_duration (th->deadline); | 703 | overdue = GNUNET_TIME_absolute_get_duration (th->deadline); |
702 | if (overdue.rel_value_us > GNUNET_CONSTANTS_LATENCY_WARN.rel_value_us) | 704 | if (overdue.rel_value_us > GNUNET_CONSTANTS_LATENCY_WARN.rel_value_us) |