From a5e12b53160fbf359dd469408c600f0eb976590b Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Sun, 19 Jul 2015 15:35:07 +0000 Subject: Remove this GNUNET_htonl_signed nonsense --- src/social/gnunet-service-social.c | 4 ++-- src/social/social_api.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/social') diff --git a/src/social/gnunet-service-social.c b/src/social/gnunet-service-social.c index 48621ad83..4211772f1 100644 --- a/src/social/gnunet-service-social.c +++ b/src/social/gnunet-service-social.c @@ -497,7 +497,7 @@ client_send_result (struct GNUNET_SERVER_Client *client, uint64_t op_id, res = GNUNET_malloc (sizeof (*res) + data_size); res->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_RESULT_CODE); res->header.size = htons (sizeof (*res) + data_size); - res->result_code = GNUNET_htonll_signed (result_code); + res->result_code = GNUNET_htonll (result_code); res->op_id = op_id; if (0 < data_size) memcpy (&res[1], data, data_size); @@ -1558,7 +1558,7 @@ psyc_recv_history_message (void *cls, res->header.size = htons (sizeof (*res) + size); res->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_HISTORY_RESULT); res->op_id = opcls->op_id; - res->result_code = GNUNET_htonll_signed (GNUNET_OK); + res->result_code = GNUNET_htonll (GNUNET_OK); memcpy (&res[1], msg, size); diff --git a/src/social/social_api.c b/src/social/social_api.c index 3c580b0bc..74a13cc35 100644 --- a/src/social/social_api.c +++ b/src/social/social_api.c @@ -661,7 +661,7 @@ place_recv_result (void *cls, uint16_t data_size = size - sizeof (*res); const char *data = (0 < data_size) ? (const char *) &res[1] : NULL; GNUNET_CLIENT_MANAGER_op_result (plc->client, GNUNET_ntohll (res->op_id), - GNUNET_ntohll_signed (res->result_code), + GNUNET_ntohll (res->result_code), data, data_size); } -- cgit v1.2.3