projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
596a7b4
)
use proper message type constants
author
Christian Grothoff
<christian@grothoff.org>
Tue, 24 Jan 2017 20:57:58 +0000
(21:57 +0100)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 24 Jan 2017 20:59:28 +0000
(21:59 +0100)
src/cadet/test_cadet.c
patch
|
blob
|
history
diff --git
a/src/cadet/test_cadet.c
b/src/cadet/test_cadet.c
index 2f50a7346372206a3015a1362cfbce9b52060c7b..3a1042ebab39bbb36d8080b00896e41a70bce649 100644
(file)
--- 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)
return 0;
}
msg->size = htons (msg_size);
- msg->type = htons (
1
);
+ msg->type = htons (
GNUNET_MESSAGE_TYPE_DUMMY
);
data = (uint32_t *) &msg[1];
*data = htonl (counter);
if (GNUNET_NO == initialized)
@@
-757,7
+757,9
@@
data_callback (void *cls,
* {callback_function, message_type, size_expected}
*/
static struct GNUNET_CADET_MessageHandler handlers[] = {
- {&data_callback, 1, sizeof (struct GNUNET_MessageHeader)},
+ {&data_callback,
+ GNUNET_MESSAGE_TYPE_DUMMY,
+ sizeof (struct GNUNET_MessageHeader)},
{NULL, 0, 0}
};