aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_api_peer_get_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core_api_peer_get_info.c')
-rw-r--r--src/core/core_api_peer_get_info.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/core/core_api_peer_get_info.c b/src/core/core_api_peer_get_info.c
index 23ae04f01..f6ce31110 100644
--- a/src/core/core_api_peer_get_info.c
+++ b/src/core/core_api_peer_get_info.c
@@ -88,7 +88,6 @@ receive_info (void *cls,
88 &cim->peer, 88 &cim->peer,
89 ntohl (cim->bpm_in), 89 ntohl (cim->bpm_in),
90 ntohl (cim->bpm_out), 90 ntohl (cim->bpm_out),
91 GNUNET_TIME_relative_ntoh (cim->latency),
92 ntohl (cim->reserved_amount), 91 ntohl (cim->reserved_amount),
93 GNUNET_ntohll (cim->preference)); 92 GNUNET_ntohll (cim->preference));
94 GNUNET_CLIENT_disconnect (irc->client); 93 GNUNET_CLIENT_disconnect (irc->client);
@@ -122,15 +121,15 @@ receive_info (void *cls,
122 * @return NULL on error 121 * @return NULL on error
123 */ 122 */
124struct GNUNET_CORE_InformationRequestContext * 123struct GNUNET_CORE_InformationRequestContext *
125GNUNET_CORE_peer_get_info (struct GNUNET_SCHEDULER_Handle *sched, 124GNUNET_CORE_peer_change_preference (struct GNUNET_SCHEDULER_Handle *sched,
126 const struct GNUNET_CONFIGURATION_Handle *cfg, 125 const struct GNUNET_CONFIGURATION_Handle *cfg,
127 const struct GNUNET_PeerIdentity *peer, 126 const struct GNUNET_PeerIdentity *peer,
128 struct GNUNET_TIME_Relative timeout, 127 struct GNUNET_TIME_Relative timeout,
129 uint32_t bpm_out, 128 uint32_t bpm_out,
130 int32_t amount, 129 int32_t amount,
131 uint64_t preference, 130 uint64_t preference,
132 GNUNET_CORE_PeerConfigurationInfoCallback info, 131 GNUNET_CORE_PeerConfigurationInfoCallback info,
133 void *info_cls) 132 void *info_cls)
134{ 133{
135 struct GNUNET_CORE_InformationRequestContext *irc; 134 struct GNUNET_CORE_InformationRequestContext *irc;
136 struct RequestInfoMessage rim; 135 struct RequestInfoMessage rim;