diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-04-08 11:12:37 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-04-08 11:12:37 +0000 |
commit | 7d3d266565f5c9fbc8b3e7901add794cd4b46a70 (patch) | |
tree | d84edd9be457c9c69f354c4b9867424813c75da4 /src/mesh | |
parent | 6db24d2d442387b5a803c5c3b24ece59f702e667 (diff) | |
download | gnunet-7d3d266565f5c9fbc8b3e7901add794cd4b46a70.tar.gz gnunet-7d3d266565f5c9fbc8b3e7901add794cd4b46a70.zip |
Fixed compiler warnings
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/gnunet-service-mesh.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 | |||
404 | /** | 404 | /** |
405 | * All the clients | 405 | * All the clients |
406 | */ | 406 | */ |
407 | static struct Client clients_head; | 407 | static struct Client *clients_head; |
408 | static struct Client clients_tail; | 408 | static struct Client *clients_tail; |
409 | 409 | ||
410 | /** | 410 | /** |
411 | * All the tunnels | 411 | * All the tunnels |
@@ -547,7 +547,7 @@ handle_local_new_client (void *cls, | |||
547 | // connect_msg = (struct GNUNET_MESH_Connect *) message; | 547 | // connect_msg = (struct GNUNET_MESH_Connect *) message; |
548 | 548 | ||
549 | /* FIXME: check if already exists? NO (optimization) */ | 549 | /* FIXME: check if already exists? NO (optimization) */ |
550 | 550 | payload_size = message->size - sizeof(struct GNUNET_MessageHeader); | |
551 | /* FIXME: is this way correct? NO */ | 551 | /* FIXME: is this way correct? NO */ |
552 | GNUNET_assert(0 == payload_size % sizeof(GNUNET_MESH_ApplicationType)); | 552 | GNUNET_assert(0 == payload_size % sizeof(GNUNET_MESH_ApplicationType)); |
553 | /* GNUNET_break */ | 553 | /* GNUNET_break */ |
@@ -559,7 +559,6 @@ handle_local_new_client (void *cls, | |||
559 | c->handle = client; | 559 | c->handle = client; |
560 | c->tunnels_head = NULL; | 560 | c->tunnels_head = NULL; |
561 | c->tunnels_tail = NULL; | 561 | c->tunnels_tail = NULL; |
562 | payload_size = message->size - sizeof(GNUNET_MessageHeader); | ||
563 | 562 | ||
564 | c->messages_subscribed = GNUNET_malloc(payload_size); | 563 | c->messages_subscribed = GNUNET_malloc(payload_size); |
565 | memcpy(c->messages_subscribed, &message[1], payload_size); | 564 | memcpy(c->messages_subscribed, &message[1], payload_size); |