diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-18 18:59:01 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-18 19:00:18 +0100 |
commit | 6fa8e1c652f447ebd94e144314ce55412dab80c8 (patch) | |
tree | 14fb8d9a5f221d106ae8e2b2244aa859a7a7314e /src/util/mst.c | |
parent | 0af32e03677ab1c8a819b376c8fa026d0ffa9144 (diff) | |
download | gnunet-6fa8e1c652f447ebd94e144314ce55412dab80c8.tar.gz gnunet-6fa8e1c652f447ebd94e144314ce55412dab80c8.zip |
logging fixes, nicer comments
Diffstat (limited to 'src/util/mst.c')
-rw-r--r-- | src/util/mst.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/mst.c b/src/util/mst.c index 82a21b880..1422c248e 100644 --- a/src/util/mst.c +++ b/src/util/mst.c | |||
@@ -130,7 +130,7 @@ GNUNET_MST_from_buffer (struct GNUNET_MessageStreamTokenizer *mst, | |||
130 | GNUNET_assert (mst->off <= mst->pos); | 130 | GNUNET_assert (mst->off <= mst->pos); |
131 | GNUNET_assert (mst->pos <= mst->curr_buf); | 131 | GNUNET_assert (mst->pos <= mst->curr_buf); |
132 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 132 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
133 | "Server-mst receives %u bytes with %u bytes already in private buffer\n", | 133 | "MST receives %u bytes with %u bytes already in private buffer\n", |
134 | (unsigned int) size, | 134 | (unsigned int) size, |
135 | (unsigned int) (mst->pos - mst->off)); | 135 | (unsigned int) (mst->pos - mst->off)); |
136 | ret = GNUNET_OK; | 136 | ret = GNUNET_OK; |
@@ -151,7 +151,7 @@ do_align: | |||
151 | } | 151 | } |
152 | if (mst->pos - mst->off < sizeof (struct GNUNET_MessageHeader)) | 152 | if (mst->pos - mst->off < sizeof (struct GNUNET_MessageHeader)) |
153 | { | 153 | { |
154 | delta | 154 | delta |
155 | = GNUNET_MIN (sizeof (struct GNUNET_MessageHeader) | 155 | = GNUNET_MIN (sizeof (struct GNUNET_MessageHeader) |
156 | - (mst->pos - mst->off), | 156 | - (mst->pos - mst->off), |
157 | size); | 157 | size); |
@@ -229,8 +229,8 @@ do_align: | |||
229 | if (one_shot == GNUNET_YES) | 229 | if (one_shot == GNUNET_YES) |
230 | one_shot = GNUNET_SYSERR; | 230 | one_shot = GNUNET_SYSERR; |
231 | mst->off += want; | 231 | mst->off += want; |
232 | if (GNUNET_SYSERR == mst->cb (mst->cb_cls, | 232 | if (GNUNET_SYSERR == mst->cb (mst->cb_cls, |
233 | hdr)) | 233 | hdr)) |
234 | return GNUNET_SYSERR; | 234 | return GNUNET_SYSERR; |
235 | if (mst->off == mst->pos) | 235 | if (mst->off == mst->pos) |
236 | { | 236 | { |