diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2015-07-19 15:35:07 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2015-07-19 15:35:07 +0000 |
commit | a5e12b53160fbf359dd469408c600f0eb976590b (patch) | |
tree | e59bee9ea565e3f9a3f976d939d4c566f29563d5 /src/psyc/psyc_api.c | |
parent | bba1229ab25ed0ae236c3062e371bb97d9a05375 (diff) | |
download | gnunet-a5e12b53160fbf359dd469408c600f0eb976590b.tar.gz gnunet-a5e12b53160fbf359dd469408c600f0eb976590b.zip |
Remove this GNUNET_htonl_signed nonsense
Diffstat (limited to 'src/psyc/psyc_api.c')
-rw-r--r-- | src/psyc/psyc_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/psyc/psyc_api.c b/src/psyc/psyc_api.c index 048257bdc..5fc5391a0 100644 --- a/src/psyc/psyc_api.c +++ b/src/psyc/psyc_api.c | |||
@@ -263,7 +263,7 @@ channel_recv_result (void *cls, | |||
263 | uint16_t data_size = size - sizeof (*res); | 263 | uint16_t data_size = size - sizeof (*res); |
264 | const char *data = (0 < data_size) ? (void *) &res[1] : NULL; | 264 | const char *data = (0 < data_size) ? (void *) &res[1] : NULL; |
265 | GNUNET_CLIENT_MANAGER_op_result (chn->client, GNUNET_ntohll (res->op_id), | 265 | GNUNET_CLIENT_MANAGER_op_result (chn->client, GNUNET_ntohll (res->op_id), |
266 | GNUNET_ntohll_signed (res->result_code), | 266 | GNUNET_ntohll (res->result_code), |
267 | data, data_size); | 267 | data, data_size); |
268 | } | 268 | } |
269 | 269 | ||
@@ -433,7 +433,7 @@ master_recv_start_ack (void *cls, | |||
433 | 433 | ||
434 | struct GNUNET_PSYC_CountersResultMessage * | 434 | struct GNUNET_PSYC_CountersResultMessage * |
435 | cres = (struct GNUNET_PSYC_CountersResultMessage *) msg; | 435 | cres = (struct GNUNET_PSYC_CountersResultMessage *) msg; |
436 | int32_t result = GNUNET_ntohl_signed (cres->result_code); | 436 | int32_t result = ntohl (cres->result_code); |
437 | if (GNUNET_OK != result && GNUNET_NO != result) | 437 | if (GNUNET_OK != result && GNUNET_NO != result) |
438 | { | 438 | { |
439 | LOG (GNUNET_ERROR_TYPE_ERROR, "Could not start master: %ld\n", result); | 439 | LOG (GNUNET_ERROR_TYPE_ERROR, "Could not start master: %ld\n", result); |
@@ -486,7 +486,7 @@ slave_recv_join_ack (void *cls, | |||
486 | sizeof (struct GNUNET_PSYC_Channel)); | 486 | sizeof (struct GNUNET_PSYC_Channel)); |
487 | struct GNUNET_PSYC_CountersResultMessage * | 487 | struct GNUNET_PSYC_CountersResultMessage * |
488 | cres = (struct GNUNET_PSYC_CountersResultMessage *) msg; | 488 | cres = (struct GNUNET_PSYC_CountersResultMessage *) msg; |
489 | int32_t result = GNUNET_ntohl_signed (cres->result_code); | 489 | int32_t result = ntohl (cres->result_code); |
490 | if (GNUNET_YES != result && GNUNET_NO != result) | 490 | if (GNUNET_YES != result && GNUNET_NO != result) |
491 | { | 491 | { |
492 | LOG (GNUNET_ERROR_TYPE_ERROR, "Could not join slave.\n"); | 492 | LOG (GNUNET_ERROR_TYPE_ERROR, "Could not join slave.\n"); |