diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-19 22:53:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-19 22:53:13 +0000 |
commit | 8a5989dc2700e8d470967e51c1f3085f095aed12 (patch) | |
tree | 6a7d35fdb5c80e94eab220735827a984270b4f38 /src/rps/rps_api.c | |
parent | 42f625fe75fce04175965b12d1edb809b56433af (diff) | |
download | gnunet-8a5989dc2700e8d470967e51c1f3085f095aed12.tar.gz gnunet-8a5989dc2700e8d470967e51c1f3085f095aed12.zip |
avoid deprecated API, use new connecT API
Diffstat (limited to 'src/rps/rps_api.c')
-rw-r--r-- | src/rps/rps_api.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/rps/rps_api.c b/src/rps/rps_api.c index b52e9da51..16a0c6c54 100644 --- a/src/rps/rps_api.c +++ b/src/rps/rps_api.c | |||
@@ -221,13 +221,11 @@ reconnect (struct GNUNET_RPS_Handle *h) | |||
221 | 221 | ||
222 | if (NULL != h->mq) | 222 | if (NULL != h->mq) |
223 | GNUNET_MQ_destroy (h->mq); | 223 | GNUNET_MQ_destroy (h->mq); |
224 | conn = GNUNET_CLIENT_connect ("rps", h->cfg); | 224 | h->mq = GNUNET_CLIENT_connecT (h->cfg, |
225 | if (NULL == conn) | 225 | "rps", |
226 | return; | 226 | mq_handlers, |
227 | h->mq = GNUNET_MQ_queue_for_connection_client (conn, | 227 | &mq_error_handler, |
228 | mq_handlers, | 228 | h); |
229 | &mq_error_handler, | ||
230 | h); | ||
231 | } | 229 | } |
232 | 230 | ||
233 | 231 | ||