From: Bart Polot Date: Fri, 8 Apr 2011 11:12:37 +0000 (+0000) Subject: Fixed compiler warnings X-Git-Tag: initial-import-from-subversion-38251~18735 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7d3d266565f5c9fbc8b3e7901add794cd4b46a70;p=oweals%2Fgnunet.git Fixed compiler warnings --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index ea9de3211..2eccda5e0 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -404,8 +404,8 @@ struct Client /** * All the clients */ -static struct Client clients_head; -static struct Client clients_tail; +static struct Client *clients_head; +static struct Client *clients_tail; /** * All the tunnels @@ -547,7 +547,7 @@ handle_local_new_client (void *cls, // connect_msg = (struct GNUNET_MESH_Connect *) message; /* FIXME: check if already exists? NO (optimization) */ - + payload_size = message->size - sizeof(struct GNUNET_MessageHeader); /* FIXME: is this way correct? NO */ GNUNET_assert(0 == payload_size % sizeof(GNUNET_MESH_ApplicationType)); /* GNUNET_break */ @@ -559,7 +559,6 @@ handle_local_new_client (void *cls, c->handle = client; c->tunnels_head = NULL; c->tunnels_tail = NULL; - payload_size = message->size - sizeof(GNUNET_MessageHeader); c->messages_subscribed = GNUNET_malloc(payload_size); memcpy(c->messages_subscribed, &message[1], payload_size);