From: Bart Polot Date: Wed, 14 Aug 2013 13:30:42 +0000 (+0000) Subject: - fix scan defects X-Git-Tag: initial-import-from-subversion-38251~7837 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6aea3c687f81273fa6f0769485f46ee36b8136bb;p=oweals%2Fgnunet.git - fix scan defects --- diff --git a/src/mesh/gnunet-service-mesh-enc.c b/src/mesh/gnunet-service-mesh-enc.c index c19199132..f42d31f1d 100644 --- a/src/mesh/gnunet-service-mesh-enc.c +++ b/src/mesh/gnunet-service-mesh-enc.c @@ -4249,7 +4249,7 @@ queue_destroy (struct MeshPeerQueue *queue, int clear_cls) if (GNUNET_YES == clear_cls) { - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " type %s\n", + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " queue destroy type %s\n", GNUNET_MESH_DEBUG_M2S (queue->type)); switch (queue->type) { @@ -5655,7 +5655,6 @@ static void handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) { struct MeshClient *c; - struct MeshClient *next; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "client disconnected: %p\n", client); if (client == NULL) @@ -5691,12 +5690,10 @@ handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) &client_release_ports, c); GNUNET_CONTAINER_multihashmap32_destroy (c->ports); } - next = c->next; GNUNET_CONTAINER_DLL_remove (clients_head, clients_tail, c); GNUNET_STATISTICS_update (stats, "# clients", -1, GNUNET_NO); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " client free (%p)\n", c); GNUNET_free (c); - c = next; } else { diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 9b4e4ad72..1893c2304 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -4896,7 +4896,6 @@ static void handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) { struct MeshClient *c; - struct MeshClient *next; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "client disconnected: %p\n", client); if (client == NULL) @@ -4932,12 +4931,10 @@ handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) &client_release_ports, c); GNUNET_CONTAINER_multihashmap32_destroy (c->ports); } - next = c->next; GNUNET_CONTAINER_DLL_remove (clients_head, clients_tail, c); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " client free (%p)\n", c); GNUNET_free (c); GNUNET_STATISTICS_update (stats, "# clients", -1, GNUNET_NO); - c = next; } else {