diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-01-09 18:04:32 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-01-09 18:04:32 +0000 |
commit | 4daaef35ba5fa174d07e680fc06932abc7791140 (patch) | |
tree | 4c48e72123b99088f2c1f9406c96687e614c3dbd /src/cadet/cadet_api.c | |
parent | 207f6b76fb16f13e159340ef16778be15a6fdfa2 (diff) | |
download | gnunet-4daaef35ba5fa174d07e680fc06932abc7791140.tar.gz gnunet-4daaef35ba5fa174d07e680fc06932abc7791140.zip |
- minor changes: tabs, logs, reorder
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r-- | src/cadet/cadet_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 00e15bc4c..058f3fa87 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c | |||
@@ -1349,12 +1349,12 @@ send_callback (void *cls, size_t size, void *buf) | |||
1349 | GNUNET_assert (sizeof (struct GNUNET_MessageHeader) <= psize); | 1349 | GNUNET_assert (sizeof (struct GNUNET_MessageHeader) <= psize); |
1350 | psize += DATA_OVERHEAD; | 1350 | psize += DATA_OVERHEAD; |
1351 | GNUNET_assert (size >= psize); | 1351 | GNUNET_assert (size >= psize); |
1352 | dmsg->header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA); | ||
1352 | dmsg->header.size = htons (psize); | 1353 | dmsg->header.size = htons (psize); |
1353 | dmsg->id = htonl (ch->chid); | 1354 | dmsg->id = htonl (ch->chid); |
1354 | dmsg->header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA); | ||
1355 | LOG (GNUNET_ERROR_TYPE_DEBUG, "# payload type %s\n", | 1355 | LOG (GNUNET_ERROR_TYPE_DEBUG, "# payload type %s\n", |
1356 | GC_m2s (ntohs (mh->type))); | 1356 | GC_m2s (ntohs (mh->type))); |
1357 | ch->allow_send = GNUNET_NO; | 1357 | ch->allow_send = GNUNET_NO; |
1358 | } | 1358 | } |
1359 | else | 1359 | else |
1360 | { | 1360 | { |