aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-19 22:53:13 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-19 22:53:13 +0000
commit8a5989dc2700e8d470967e51c1f3085f095aed12 (patch)
tree6a7d35fdb5c80e94eab220735827a984270b4f38 /src/peerstore
parent42f625fe75fce04175965b12d1edb809b56433af (diff)
downloadgnunet-8a5989dc2700e8d470967e51c1f3085f095aed12.tar.gz
gnunet-8a5989dc2700e8d470967e51c1f3085f095aed12.zip
avoid deprecated API, use new connecT API
Diffstat (limited to 'src/peerstore')
-rw-r--r--src/peerstore/peerstore_api.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c
index b08de8229..a288e74d2 100644
--- a/src/peerstore/peerstore_api.c
+++ b/src/peerstore/peerstore_api.c
@@ -807,7 +807,6 @@ reconnect (struct GNUNET_PEERSTORE_Handle *h)
807 void *icb_cls; 807 void *icb_cls;
808 struct GNUNET_PEERSTORE_StoreContext *sc; 808 struct GNUNET_PEERSTORE_StoreContext *sc;
809 struct GNUNET_MQ_Envelope *ev; 809 struct GNUNET_MQ_Envelope *ev;
810 struct GNUNET_CLIENT_Connection *client;
811 810
812 LOG (GNUNET_ERROR_TYPE_DEBUG, 811 LOG (GNUNET_ERROR_TYPE_DEBUG,
813 "Reconnecting...\n"); 812 "Reconnecting...\n");
@@ -830,13 +829,13 @@ reconnect (struct GNUNET_PEERSTORE_Handle *h)
830 GNUNET_MQ_destroy (h->mq); 829 GNUNET_MQ_destroy (h->mq);
831 h->mq = NULL; 830 h->mq = NULL;
832 } 831 }
833 client = GNUNET_CLIENT_connect ("peerstore", 832 h->mq = GNUNET_CLIENT_connecT (h->cfg,
834 h->cfg); 833 "peerstore",
835 if (NULL == client) 834 mq_handlers,
835 &handle_client_error,
836 h);
837 if (NULL == h->mq)
836 return; 838 return;
837 h->mq = GNUNET_MQ_queue_for_connection_client (client,
838 mq_handlers,
839 &handle_client_error, h);
840 LOG (GNUNET_ERROR_TYPE_DEBUG, 839 LOG (GNUNET_ERROR_TYPE_DEBUG,
841 "Resending pending requests after reconnect.\n"); 840 "Resending pending requests after reconnect.\n");
842 if (NULL != h->watches) 841 if (NULL != h->watches)