summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/conversation/gnunet-service-conversation.c2
-rw-r--r--src/gns/gnunet-service-gns.c4
-rw-r--r--src/namecache/gnunet-service-namecache.c2
-rw-r--r--src/namestore/gnunet-service-namestore.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c
index e0c10e533..054274e33 100644
--- a/src/conversation/gnunet-service-conversation.c
+++ b/src/conversation/gnunet-service-conversation.c
@@ -1141,7 +1141,7 @@ handle_client_disconnect (void *cls,
1141 line = GNUNET_SERVER_client_get_user_context (client, struct Line); 1141 line = GNUNET_SERVER_client_get_user_context (client, struct Line);
1142 if (NULL == line) 1142 if (NULL == line)
1143 return; 1143 return;
1144 GNUNET_SERVER_client_set_user_context (client, NULL); 1144 GNUNET_SERVER_client_set_user_context (client, (void *)NULL);
1145 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1145 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1146 "Client disconnected, closing line\n"); 1146 "Client disconnected, closing line\n");
1147 GNUNET_CONTAINER_DLL_remove (lines_head, 1147 GNUNET_CONTAINER_DLL_remove (lines_head,
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c
index d2e5cda85..f20166e38 100644
--- a/src/gns/gnunet-service-gns.c
+++ b/src/gns/gnunet-service-gns.c
@@ -259,7 +259,7 @@ shutdown_task (void *cls,
259 GNUNET_SERVER_notification_context_destroy (nc); 259 GNUNET_SERVER_notification_context_destroy (nc);
260 while (NULL != (clh = clh_head)) 260 while (NULL != (clh = clh_head))
261 { 261 {
262 GNUNET_SERVER_client_set_user_context (clh->client, NULL); 262 GNUNET_SERVER_client_set_user_context (clh->client, (void *)NULL);
263 GNS_resolver_lookup_cancel (clh->lookup); 263 GNS_resolver_lookup_cancel (clh->lookup);
264 GNUNET_CONTAINER_DLL_remove (clh_head, clh_tail, clh); 264 GNUNET_CONTAINER_DLL_remove (clh_head, clh_tail, clh);
265 GNUNET_free (clh); 265 GNUNET_free (clh);
@@ -702,7 +702,7 @@ send_lookup_response (void* cls,
702 GNUNET_NO); 702 GNUNET_NO);
703 GNUNET_free (rmsg); 703 GNUNET_free (rmsg);
704 GNUNET_CONTAINER_DLL_remove (clh_head, clh_tail, clh); 704 GNUNET_CONTAINER_DLL_remove (clh_head, clh_tail, clh);
705 GNUNET_SERVER_client_set_user_context (clh->client, NULL); 705 GNUNET_SERVER_client_set_user_context (clh->client, (void *)NULL);
706 GNUNET_free (clh); 706 GNUNET_free (clh);
707 GNUNET_STATISTICS_update (statistics, 707 GNUNET_STATISTICS_update (statistics,
708 "Completed lookups", 1, 708 "Completed lookups", 1,
diff --git a/src/namecache/gnunet-service-namecache.c b/src/namecache/gnunet-service-namecache.c
index 701bac4ae..0b3ece1f4 100644
--- a/src/namecache/gnunet-service-namecache.c
+++ b/src/namecache/gnunet-service-namecache.c
@@ -122,7 +122,7 @@ cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
122 while (NULL != (nc = client_head)) 122 while (NULL != (nc = client_head))
123 { 123 {
124 GNUNET_CONTAINER_DLL_remove (client_head, client_tail, nc); 124 GNUNET_CONTAINER_DLL_remove (client_head, client_tail, nc);
125 GNUNET_SERVER_client_set_user_context (nc->client, NULL); 125 GNUNET_SERVER_client_set_user_context (nc->client, (void *)NULL);
126 GNUNET_free (nc); 126 GNUNET_free (nc);
127 } 127 }
128 GNUNET_break (NULL == GNUNET_PLUGIN_unload (db_lib_name, GSN_database)); 128 GNUNET_break (NULL == GNUNET_PLUGIN_unload (db_lib_name, GSN_database));
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c
index f793c50d7..ad8c9e798 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -298,7 +298,7 @@ cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
298 GNUNET_free (no); 298 GNUNET_free (no);
299 } 299 }
300 GNUNET_CONTAINER_DLL_remove (client_head, client_tail, nc); 300 GNUNET_CONTAINER_DLL_remove (client_head, client_tail, nc);
301 GNUNET_SERVER_client_set_user_context (nc->client, NULL); 301 GNUNET_SERVER_client_set_user_context (nc->client, (void *)NULL);
302 GNUNET_free (nc); 302 GNUNET_free (nc);
303 } 303 }
304 GNUNET_break (NULL == GNUNET_PLUGIN_unload (db_lib_name, GSN_database)); 304 GNUNET_break (NULL == GNUNET_PLUGIN_unload (db_lib_name, GSN_database));