diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-05-03 08:23:35 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-05-03 08:23:35 +0000 |
commit | 115e8f7ff84e503ce97ea1f985c1474c866eb6d4 (patch) | |
tree | 0433370d0d1940733e3f49b6b84b142cfceaf484 /src | |
parent | 5d0af07ba54df3f2b0b9a5b367b1a6844eef67f6 (diff) | |
download | gnunet-115e8f7ff84e503ce97ea1f985c1474c866eb6d4.tar.gz gnunet-115e8f7ff84e503ce97ea1f985c1474c866eb6d4.zip |
- unused var
Diffstat (limited to 'src')
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 7f782051b..e9475c9f1 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -1707,24 +1707,22 @@ static void handle_iteration_start (void *cls, | |||
1707 | zi->request_id = ntohl (zis_msg->gns_header.r_id); | 1707 | zi->request_id = ntohl (zis_msg->gns_header.r_id); |
1708 | zi->offset = 0; | 1708 | zi->offset = 0; |
1709 | zi->client = nc; | 1709 | zi->client = nc; |
1710 | zi->zone = zis_msg->zone; | ||
1711 | zi->must_have_flags = ntohs (zis_msg->must_have_flags); | 1710 | zi->must_have_flags = ntohs (zis_msg->must_have_flags); |
1712 | zi->must_not_have_flags = ntohs (zis_msg->must_not_have_flags); | 1711 | zi->must_not_have_flags = ntohs (zis_msg->must_not_have_flags); |
1713 | 1712 | ||
1714 | struct GNUNET_CRYPTO_ShortHashCode dummy; | 1713 | struct GNUNET_CRYPTO_ShortHashCode dummy; |
1715 | struct GNUNET_CRYPTO_ShortHashCode *zone_tmp; | ||
1716 | memset (&dummy, '\0', sizeof (dummy)); | 1714 | memset (&dummy, '\0', sizeof (dummy)); |
1717 | if (0 == memcmp (&dummy, &zis_msg->zone, sizeof (dummy))) | 1715 | if (0 == memcmp (&dummy, &zis_msg->zone, sizeof (dummy))) |
1718 | { | 1716 | { |
1719 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting to iterate over all zones\n"); | 1717 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting to iterate over all zones\n"); |
1718 | zi->zone = zis_msg->zone; | ||
1720 | zi->has_zone = GNUNET_NO; | 1719 | zi->has_zone = GNUNET_NO; |
1721 | zone_tmp = NULL; | ||
1722 | } | 1720 | } |
1723 | else | 1721 | else |
1724 | { | 1722 | { |
1725 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting to iterate over zone `%s'\n", GNUNET_short_h2s (&zis_msg->zone)); | 1723 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting to iterate over zone `%s'\n", GNUNET_short_h2s (&zis_msg->zone)); |
1724 | zi->zone = zis_msg->zone; | ||
1726 | zi->has_zone = GNUNET_YES; | 1725 | zi->has_zone = GNUNET_YES; |
1727 | zone_tmp = &zis_msg->zone; | ||
1728 | } | 1726 | } |
1729 | 1727 | ||
1730 | GNUNET_CONTAINER_DLL_insert (nc->op_head, nc->op_tail, zi); | 1728 | GNUNET_CONTAINER_DLL_insert (nc->op_head, nc->op_tail, zi); |
@@ -1797,7 +1795,6 @@ static void handle_iteration_next (void *cls, | |||
1797 | 1795 | ||
1798 | struct GNUNET_NAMESTORE_Client *nc; | 1796 | struct GNUNET_NAMESTORE_Client *nc; |
1799 | struct GNUNET_NAMESTORE_ZoneIteration *zi; | 1797 | struct GNUNET_NAMESTORE_ZoneIteration *zi; |
1800 | struct GNUNET_CRYPTO_ShortHashCode *zone_tmp; | ||
1801 | struct ZoneIterationStopMessage * zis_msg = (struct ZoneIterationStopMessage *) message; | 1798 | struct ZoneIterationStopMessage * zis_msg = (struct ZoneIterationStopMessage *) message; |
1802 | uint32_t rid; | 1799 | uint32_t rid; |
1803 | 1800 | ||
@@ -1822,12 +1819,6 @@ static void handle_iteration_next (void *cls, | |||
1822 | return; | 1819 | return; |
1823 | } | 1820 | } |
1824 | 1821 | ||
1825 | if (GNUNET_YES == zi->has_zone) | ||
1826 | zone_tmp = &zi->zone; | ||
1827 | else | ||
1828 | zone_tmp = NULL; | ||
1829 | |||
1830 | |||
1831 | struct ZoneIterationProcResult proc; | 1822 | struct ZoneIterationProcResult proc; |
1832 | proc.zi = zi; | 1823 | proc.zi = zi; |
1833 | 1824 | ||