aboutsummaryrefslogtreecommitdiff
path: root/src/social
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2015-07-19 15:35:07 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2015-07-19 15:35:07 +0000
commita5e12b53160fbf359dd469408c600f0eb976590b (patch)
treee59bee9ea565e3f9a3f976d939d4c566f29563d5 /src/social
parentbba1229ab25ed0ae236c3062e371bb97d9a05375 (diff)
downloadgnunet-a5e12b53160fbf359dd469408c600f0eb976590b.tar.gz
gnunet-a5e12b53160fbf359dd469408c600f0eb976590b.zip
Remove this GNUNET_htonl_signed nonsense
Diffstat (limited to 'src/social')
-rw-r--r--src/social/gnunet-service-social.c4
-rw-r--r--src/social/social_api.c2
2 files changed, 3 insertions, 3 deletions
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,
497 res = GNUNET_malloc (sizeof (*res) + data_size); 497 res = GNUNET_malloc (sizeof (*res) + data_size);
498 res->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_RESULT_CODE); 498 res->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_RESULT_CODE);
499 res->header.size = htons (sizeof (*res) + data_size); 499 res->header.size = htons (sizeof (*res) + data_size);
500 res->result_code = GNUNET_htonll_signed (result_code); 500 res->result_code = GNUNET_htonll (result_code);
501 res->op_id = op_id; 501 res->op_id = op_id;
502 if (0 < data_size) 502 if (0 < data_size)
503 memcpy (&res[1], data, data_size); 503 memcpy (&res[1], data, data_size);
@@ -1558,7 +1558,7 @@ psyc_recv_history_message (void *cls,
1558 res->header.size = htons (sizeof (*res) + size); 1558 res->header.size = htons (sizeof (*res) + size);
1559 res->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_HISTORY_RESULT); 1559 res->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_HISTORY_RESULT);
1560 res->op_id = opcls->op_id; 1560 res->op_id = opcls->op_id;
1561 res->result_code = GNUNET_htonll_signed (GNUNET_OK); 1561 res->result_code = GNUNET_htonll (GNUNET_OK);
1562 1562
1563 memcpy (&res[1], msg, size); 1563 memcpy (&res[1], msg, size);
1564 1564
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,
661 uint16_t data_size = size - sizeof (*res); 661 uint16_t data_size = size - sizeof (*res);
662 const char *data = (0 < data_size) ? (const char *) &res[1] : NULL; 662 const char *data = (0 < data_size) ? (const char *) &res[1] : NULL;
663 GNUNET_CLIENT_MANAGER_op_result (plc->client, GNUNET_ntohll (res->op_id), 663 GNUNET_CLIENT_MANAGER_op_result (plc->client, GNUNET_ntohll (res->op_id),
664 GNUNET_ntohll_signed (res->result_code), 664 GNUNET_ntohll (res->result_code),
665 data, data_size); 665 data, data_size);
666} 666}
667 667