aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r--src/core/core_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index 02379e36e..931ffe97e 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -904,7 +904,7 @@ GNUNET_CORE_peer_configure (struct GNUNET_CORE_Handle *handle,
904 struct GNUNET_TIME_Relative timeout, 904 struct GNUNET_TIME_Relative timeout,
905 unsigned int bpm_out, 905 unsigned int bpm_out,
906 int amount, 906 int amount,
907 double preference, 907 unsigned long long preference,
908 GNUNET_CORE_PeerConfigurationInfoCallback info, 908 GNUNET_CORE_PeerConfigurationInfoCallback info,
909 void *info_cls) 909 void *info_cls)
910{ 910{
@@ -938,7 +938,7 @@ GNUNET_CORE_peer_configure (struct GNUNET_CORE_Handle *handle,
938 rcm->reserved = htonl (0); 938 rcm->reserved = htonl (0);
939 rcm->limit_outbound_bpm = htonl (bpm_out); 939 rcm->limit_outbound_bpm = htonl (bpm_out);
940 rcm->reserve_inbound = htonl (amount); 940 rcm->reserve_inbound = htonl (amount);
941 rcm->preference_change = preference; 941 rcm->preference_change = GNUNET_htonll(preference);
942 rcm->peer = *peer; 942 rcm->peer = *peer;
943 if (handle->pending_head == th) 943 if (handle->pending_head == th)
944 trigger_next_request (handle); 944 trigger_next_request (handle);