diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-14 22:44:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-14 22:44:18 +0000 |
commit | 17d1146c625092753e1b29b7ce6f0dfb603fbd09 (patch) | |
tree | a747d21a24654dceebe2b31b9960bfcc1333d222 /src/namestore/gnunet-service-namestore.c | |
parent | 670ef7244591123c4d6432b8a76fe8b4a9e39ee4 (diff) | |
download | gnunet-17d1146c625092753e1b29b7ce6f0dfb603fbd09.tar.gz gnunet-17d1146c625092753e1b29b7ce6f0dfb603fbd09.zip |
-addressing #2995
Diffstat (limited to 'src/namestore/gnunet-service-namestore.c')
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 6cd0334c4..066bfa5bb 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -334,10 +334,10 @@ client_lookup (struct GNUNET_SERVER_Client *client) | |||
334 | 334 | ||
335 | 335 | ||
336 | /** | 336 | /** |
337 | * Context for name lookups passed from 'handle_lookup_name' to | 337 | * Context for name lookups passed from #handle_lookup_block to |
338 | * 'handle_lookup_name_it' as closure | 338 | * #handle_lookup_block_it as closure |
339 | */ | 339 | */ |
340 | struct LookupNameContext | 340 | struct LookupBlockContext |
341 | { | 341 | { |
342 | /** | 342 | /** |
343 | * The client to send the response to | 343 | * The client to send the response to |
@@ -362,7 +362,7 @@ static void | |||
362 | handle_lookup_block_it (void *cls, | 362 | handle_lookup_block_it (void *cls, |
363 | const struct GNUNET_NAMESTORE_Block *block) | 363 | const struct GNUNET_NAMESTORE_Block *block) |
364 | { | 364 | { |
365 | struct LookupNameContext *lnc = cls; | 365 | struct LookupBlockContext *lnc = cls; |
366 | struct LookupBlockResponseMessage *r; | 366 | struct LookupBlockResponseMessage *r; |
367 | size_t esize; | 367 | size_t esize; |
368 | 368 | ||
@@ -379,7 +379,7 @@ handle_lookup_block_it (void *cls, | |||
379 | memcpy (&r[1], &block[1], esize); | 379 | memcpy (&r[1], &block[1], esize); |
380 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 380 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
381 | "Sending `%s' message\n", | 381 | "Sending `%s' message\n", |
382 | "NAMESTORE_LOOKUP_NAME_RESPONSE"); | 382 | "NAMESTORE_LOOKUP_BLOCK_RESPONSE"); |
383 | GNUNET_SERVER_notification_context_unicast (snc, | 383 | GNUNET_SERVER_notification_context_unicast (snc, |
384 | lnc->nc->client, | 384 | lnc->nc->client, |
385 | &r->gns_header.header, | 385 | &r->gns_header.header, |
@@ -401,14 +401,14 @@ handle_lookup_block (void *cls, | |||
401 | const struct GNUNET_MessageHeader *message) | 401 | const struct GNUNET_MessageHeader *message) |
402 | { | 402 | { |
403 | const struct LookupBlockMessage *ln_msg; | 403 | const struct LookupBlockMessage *ln_msg; |
404 | struct LookupNameContext lnc; | 404 | struct LookupBlockContext lnc; |
405 | struct NamestoreClient *nc; | 405 | struct NamestoreClient *nc; |
406 | struct LookupBlockResponseMessage zir_end; | 406 | struct LookupBlockResponseMessage zir_end; |
407 | int ret; | 407 | int ret; |
408 | 408 | ||
409 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 409 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
410 | "Received `%s' message\n", | 410 | "Received `%s' message\n", |
411 | "NAMESTORE_LOOKUP_NAME"); | 411 | "NAMESTORE_LOOKUP_BLOCK"); |
412 | nc = client_lookup(client); | 412 | nc = client_lookup(client); |
413 | ln_msg = (const struct LookupBlockMessage *) message; | 413 | ln_msg = (const struct LookupBlockMessage *) message; |
414 | lnc.request_id = ntohl (ln_msg->gns_header.r_id); | 414 | lnc.request_id = ntohl (ln_msg->gns_header.r_id); |