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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/core_api_peer_get_info.c b/src/core/core_api_peer_get_info.c
index 68cf2da11..1ca8d82af 100644
--- a/src/core/core_api_peer_get_info.c
+++ b/src/core/core_api_peer_get_info.c
@@ -99,7 +99,6 @@ receive_info (void *cls,
99/** 99/**
100 * Obtain statistics and/or change preferences for the given peer. 100 * Obtain statistics and/or change preferences for the given peer.
101 * 101 *
102 * @param sched scheduler to use
103 * @param cfg configuration to use 102 * @param cfg configuration to use
104 * @param peer identifies the peer 103 * @param peer identifies the peer
105 * @param timeout after how long should we give up (and call "info" with NULL 104 * @param timeout after how long should we give up (and call "info" with NULL
@@ -122,8 +121,7 @@ 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_change_preference (struct GNUNET_SCHEDULER_Handle *sched, 124GNUNET_CORE_peer_change_preference (const struct GNUNET_CONFIGURATION_Handle *cfg,
126 const struct GNUNET_CONFIGURATION_Handle *cfg,
127 const struct GNUNET_PeerIdentity *peer, 125 const struct GNUNET_PeerIdentity *peer,
128 struct GNUNET_TIME_Relative timeout, 126 struct GNUNET_TIME_Relative timeout,
129 struct GNUNET_BANDWIDTH_Value32NBO bw_out, 127 struct GNUNET_BANDWIDTH_Value32NBO bw_out,
@@ -137,7 +135,7 @@ GNUNET_CORE_peer_change_preference (struct GNUNET_SCHEDULER_Handle *sched,
137 struct GNUNET_CLIENT_Connection *client; 135 struct GNUNET_CLIENT_Connection *client;
138 int retry; 136 int retry;
139 137
140 client = GNUNET_CLIENT_connect (sched, "core", cfg); 138 client = GNUNET_CLIENT_connect ("core", cfg);
141 if (client == NULL) 139 if (client == NULL)
142 return NULL; 140 return NULL;
143 irc = GNUNET_malloc (sizeof (struct GNUNET_CORE_InformationRequestContext)); 141 irc = GNUNET_malloc (sizeof (struct GNUNET_CORE_InformationRequestContext));