diff options
Diffstat (limited to 'src/social/gnunet-service-social.c')
-rw-r--r-- | src/social/gnunet-service-social.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/social/gnunet-service-social.c b/src/social/gnunet-service-social.c index 3f558730e..bf147d3ba 100644 --- a/src/social/gnunet-service-social.c +++ b/src/social/gnunet-service-social.c | |||
@@ -528,7 +528,7 @@ psyc_master_started (void *cls, int result, uint64_t max_message_id) | |||
528 | struct GNUNET_PSYC_CountersResultMessage res; | 528 | struct GNUNET_PSYC_CountersResultMessage res; |
529 | res.header.type = htons (GNUNET_MESSAGE_TYPE_SOCIAL_HOST_ENTER_ACK); | 529 | res.header.type = htons (GNUNET_MESSAGE_TYPE_SOCIAL_HOST_ENTER_ACK); |
530 | res.header.size = htons (sizeof (res)); | 530 | res.header.size = htons (sizeof (res)); |
531 | res.result_code = htonl (result - INT32_MIN); | 531 | res.result_code = htonl (result); |
532 | res.max_message_id = GNUNET_htonll (plc->max_message_id); | 532 | res.max_message_id = GNUNET_htonll (plc->max_message_id); |
533 | 533 | ||
534 | client_send_msg (plc, &res.header); | 534 | client_send_msg (plc, &res.header); |
@@ -568,7 +568,7 @@ psyc_slave_connected (void *cls, int result, uint64_t max_message_id) | |||
568 | struct GNUNET_PSYC_CountersResultMessage res; | 568 | struct GNUNET_PSYC_CountersResultMessage res; |
569 | res.header.type = htons (GNUNET_MESSAGE_TYPE_SOCIAL_GUEST_ENTER_ACK); | 569 | res.header.type = htons (GNUNET_MESSAGE_TYPE_SOCIAL_GUEST_ENTER_ACK); |
570 | res.header.size = htons (sizeof (res)); | 570 | res.header.size = htons (sizeof (res)); |
571 | res.result_code = htonl (result - INT32_MIN); | 571 | res.result_code = htonl (result); |
572 | res.max_message_id = GNUNET_htonll (plc->max_message_id); | 572 | res.max_message_id = GNUNET_htonll (plc->max_message_id); |
573 | 573 | ||
574 | client_send_msg (plc, &res.header); | 574 | client_send_msg (plc, &res.header); |