diff options
-rw-r--r-- | src/cadet/test_cadet.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cadet/test_cadet.c b/src/cadet/test_cadet.c index 2f50a7346..3a1042eba 100644 --- a/src/cadet/test_cadet.c +++ b/src/cadet/test_cadet.c | |||
@@ -563,7 +563,7 @@ tmt_rdy (void *cls, size_t size, void *buf) | |||
563 | return 0; | 563 | return 0; |
564 | } | 564 | } |
565 | msg->size = htons (msg_size); | 565 | msg->size = htons (msg_size); |
566 | msg->type = htons (1); | 566 | msg->type = htons (GNUNET_MESSAGE_TYPE_DUMMY); |
567 | data = (uint32_t *) &msg[1]; | 567 | data = (uint32_t *) &msg[1]; |
568 | *data = htonl (counter); | 568 | *data = htonl (counter); |
569 | if (GNUNET_NO == initialized) | 569 | if (GNUNET_NO == initialized) |
@@ -757,7 +757,9 @@ data_callback (void *cls, | |||
757 | * {callback_function, message_type, size_expected} | 757 | * {callback_function, message_type, size_expected} |
758 | */ | 758 | */ |
759 | static struct GNUNET_CADET_MessageHandler handlers[] = { | 759 | static struct GNUNET_CADET_MessageHandler handlers[] = { |
760 | {&data_callback, 1, sizeof (struct GNUNET_MessageHeader)}, | 760 | {&data_callback, |
761 | GNUNET_MESSAGE_TYPE_DUMMY, | ||
762 | sizeof (struct GNUNET_MessageHeader)}, | ||
761 | {NULL, 0, 0} | 763 | {NULL, 0, 0} |
762 | }; | 764 | }; |
763 | 765 | ||