aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_address_to_string.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-19 08:53:46 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-19 08:53:46 +0000
commitccc7218f3d2008d4e7ec5e222ba6b6451ec677ba (patch)
tree50664649cca13e5462dadea8c9bcde81c59e07ef /src/transport/transport_api_address_to_string.c
parent75297c57a857d0c7c1428bed00e32ed2c8b5389d (diff)
downloadgnunet-ccc7218f3d2008d4e7ec5e222ba6b6451ec677ba.tar.gz
gnunet-ccc7218f3d2008d4e7ec5e222ba6b6451ec677ba.zip
-removing 2nd argument from GNUNET_CLIENT_disconnect as it was virtually always GNUNET_NO --- and all other uses indicate design problems
Diffstat (limited to 'src/transport/transport_api_address_to_string.c')
-rw-r--r--src/transport/transport_api_address_to_string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/transport_api_address_to_string.c b/src/transport/transport_api_address_to_string.c
index 73ea09f85..237c0b657 100644
--- a/src/transport/transport_api_address_to_string.c
+++ b/src/transport/transport_api_address_to_string.c
@@ -71,7 +71,7 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg)
71 if (msg == NULL) 71 if (msg == NULL)
72 { 72 {
73 alucb->cb (alucb->cb_cls, NULL); 73 alucb->cb (alucb->cb_cls, NULL);
74 GNUNET_CLIENT_disconnect (alucb->client, GNUNET_NO); 74 GNUNET_CLIENT_disconnect (alucb->client);
75 GNUNET_free (alucb); 75 GNUNET_free (alucb);
76 return; 76 return;
77 } 77 }
@@ -82,7 +82,7 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg)
82 { 82 {
83 /* done! */ 83 /* done! */
84 alucb->cb (alucb->cb_cls, NULL); 84 alucb->cb (alucb->cb_cls, NULL);
85 GNUNET_CLIENT_disconnect (alucb->client, GNUNET_NO); 85 GNUNET_CLIENT_disconnect (alucb->client);
86 GNUNET_free (alucb); 86 GNUNET_free (alucb);
87 return; 87 return;
88 } 88 }
@@ -92,7 +92,7 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg)
92 /* invalid reply */ 92 /* invalid reply */
93 GNUNET_break (0); 93 GNUNET_break (0);
94 alucb->cb (alucb->cb_cls, NULL); 94 alucb->cb (alucb->cb_cls, NULL);
95 GNUNET_CLIENT_disconnect (alucb->client, GNUNET_NO); 95 GNUNET_CLIENT_disconnect (alucb->client);
96 GNUNET_free (alucb); 96 GNUNET_free (alucb);
97 return; 97 return;
98 } 98 }
@@ -180,7 +180,7 @@ GNUNET_TRANSPORT_address_to_string_cancel (struct
180 GNUNET_TRANSPORT_AddressToStringContext 180 GNUNET_TRANSPORT_AddressToStringContext
181 *alc) 181 *alc)
182{ 182{
183 GNUNET_CLIENT_disconnect (alc->client, GNUNET_NO); 183 GNUNET_CLIENT_disconnect (alc->client);
184 GNUNET_free (alc); 184 GNUNET_free (alc);
185} 185}
186 186