diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-11-16 18:48:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-11-16 18:48:40 +0000 |
commit | 942c00a499e9fd77a7573de622d169f362b08abd (patch) | |
tree | ad568654df2e9dda3c9427d834f6f573d9d883ce /src/conversation/gnunet-service-conversation.c | |
parent | 16d4890cc9745833cd1542d5ec4391b7e4f87c71 (diff) | |
download | gnunet-942c00a499e9fd77a7573de622d169f362b08abd.tar.gz gnunet-942c00a499e9fd77a7573de622d169f362b08abd.zip |
-fix missing endianess conversions
Diffstat (limited to 'src/conversation/gnunet-service-conversation.c')
-rw-r--r-- | src/conversation/gnunet-service-conversation.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c index b12d0e193..7fbff1fac 100644 --- a/src/conversation/gnunet-service-conversation.c +++ b/src/conversation/gnunet-service-conversation.c | |||
@@ -978,7 +978,7 @@ handle_mesh_hangup_message (void *cls, | |||
978 | } | 978 | } |
979 | line = ch->line; | 979 | line = ch->line; |
980 | *channel_ctx = NULL; | 980 | *channel_ctx = NULL; |
981 | hup.header.size = sizeof (hup); | 981 | hup.header.size = htons (sizeof (hup)); |
982 | hup.header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP); | 982 | hup.header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP); |
983 | hup.cid = ch->cid; | 983 | hup.cid = ch->cid; |
984 | status = ch->status; | 984 | status = ch->status; |
@@ -1057,7 +1057,7 @@ handle_mesh_pickup_message (void *cls, | |||
1057 | mq_done_finish_caller_shutdown (ch); | 1057 | mq_done_finish_caller_shutdown (ch); |
1058 | return GNUNET_SYSERR; | 1058 | return GNUNET_SYSERR; |
1059 | } | 1059 | } |
1060 | pick.header.size = sizeof (pick); | 1060 | pick.header.size = htons (sizeof (pick)); |
1061 | pick.header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICKED_UP); | 1061 | pick.header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICKED_UP); |
1062 | pick.cid = ch->cid; | 1062 | pick.cid = ch->cid; |
1063 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1063 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -1107,7 +1107,7 @@ handle_mesh_suspend_message (void *cls, | |||
1107 | return GNUNET_SYSERR; | 1107 | return GNUNET_SYSERR; |
1108 | } | 1108 | } |
1109 | line = ch->line; | 1109 | line = ch->line; |
1110 | suspend.header.size = sizeof (suspend); | 1110 | suspend.header.size = htons (sizeof (suspend)); |
1111 | suspend.header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_SUSPEND); | 1111 | suspend.header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_SUSPEND); |
1112 | suspend.cid = ch->cid; | 1112 | suspend.cid = ch->cid; |
1113 | GNUNET_MESH_receive_done (channel); | 1113 | GNUNET_MESH_receive_done (channel); |
@@ -1165,7 +1165,7 @@ handle_mesh_resume_message (void *cls, | |||
1165 | return GNUNET_SYSERR; | 1165 | return GNUNET_SYSERR; |
1166 | } | 1166 | } |
1167 | line = ch->line; | 1167 | line = ch->line; |
1168 | resume.header.size = sizeof (resume); | 1168 | resume.header.size = htons (sizeof (resume)); |
1169 | resume.header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_RESUME); | 1169 | resume.header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_RESUME); |
1170 | resume.cid = ch->cid; | 1170 | resume.cid = ch->cid; |
1171 | GNUNET_MESH_receive_done (channel); | 1171 | GNUNET_MESH_receive_done (channel); |
@@ -1341,7 +1341,7 @@ inbound_end (void *cls, | |||
1341 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1341 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1342 | "Mesh channel destroyed by mesh in state %d\n", | 1342 | "Mesh channel destroyed by mesh in state %d\n", |
1343 | ch->status); | 1343 | ch->status); |
1344 | hup.header.size = sizeof (hup); | 1344 | hup.header.size = htons (sizeof (hup)); |
1345 | hup.header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP); | 1345 | hup.header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP); |
1346 | hup.cid = ch->cid; | 1346 | hup.cid = ch->cid; |
1347 | switch (ch->status) | 1347 | switch (ch->status) |