diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-25 17:40:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-25 17:40:16 +0000 |
commit | 09f60ef3bac1f997ba86898b4140bcda70191740 (patch) | |
tree | 54dbf3967dc43b767d29b4cc5e33f031d55015f1 /src/gns/gnunet-service-gns.c | |
parent | 2fa661c71bbfe37518bdefd7561aca475278b86a (diff) | |
download | gnunet-09f60ef3bac1f997ba86898b4140bcda70191740.tar.gz gnunet-09f60ef3bac1f997ba86898b4140bcda70191740.zip |
refactoring gns_api to use MQ API
Diffstat (limited to 'src/gns/gnunet-service-gns.c')
-rw-r--r-- | src/gns/gnunet-service-gns.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index 5e1b5830f..e2bb0ad8c 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c | |||
@@ -706,9 +706,8 @@ send_lookup_response (void* cls, | |||
706 | size_t len; | 706 | size_t len; |
707 | 707 | ||
708 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 708 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
709 | "Sending `%s' message with %d results\n", | 709 | "Sending LOOKUP_RESULT message with %u results\n", |
710 | "LOOKUP_RESULT", | 710 | (unsigned int) rd_count); |
711 | rd_count); | ||
712 | 711 | ||
713 | len = GNUNET_GNSRECORD_records_get_size (rd_count, rd); | 712 | len = GNUNET_GNSRECORD_records_get_size (rd_count, rd); |
714 | rmsg = GNUNET_malloc (len + sizeof (struct GNUNET_GNS_ClientLookupResultMessage)); | 713 | rmsg = GNUNET_malloc (len + sizeof (struct GNUNET_GNS_ClientLookupResultMessage)); |
@@ -757,8 +756,7 @@ handle_lookup (void *cls, | |||
757 | const struct GNUNET_GNS_ClientLookupMessage *sh_msg; | 756 | const struct GNUNET_GNS_ClientLookupMessage *sh_msg; |
758 | 757 | ||
759 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 758 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
760 | "Received `%s' message\n", | 759 | "Received LOOKUP message\n"); |
761 | "LOOKUP"); | ||
762 | msg_size = ntohs (message->size); | 760 | msg_size = ntohs (message->size); |
763 | if (msg_size < sizeof (struct GNUNET_GNS_ClientLookupMessage)) | 761 | if (msg_size < sizeof (struct GNUNET_GNS_ClientLookupMessage)) |
764 | { | 762 | { |