aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-02 14:29:55 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-02 14:29:55 +0000
commitd57a55d4d59b2e72ce8ce499a835f78c5a1afa86 (patch)
tree205ae2a299f32a64a935b1580dda1a2dc7ae53d8 /src
parent1a5fde79d34f2d5dad735939a8d04aa673a29e3f (diff)
downloadgnunet-d57a55d4d59b2e72ce8ce499a835f78c5a1afa86.tar.gz
gnunet-d57a55d4d59b2e72ce8ce499a835f78c5a1afa86.zip
-fix warning
Diffstat (limited to 'src')
-rw-r--r--src/namestore/test_namestore_api_lookup.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_lookup.c b/src/namestore/test_namestore_api_lookup.c
index 19a96a746..818e7108d 100644
--- a/src/namestore/test_namestore_api_lookup.c
+++ b/src/namestore/test_namestore_api_lookup.c
@@ -137,7 +137,6 @@ void name_lookup_proc (void *cls,
137 const struct GNUNET_CRYPTO_RsaSignature *signature) 137 const struct GNUNET_CRYPTO_RsaSignature *signature)
138{ 138{
139 static int found = GNUNET_NO; 139 static int found = GNUNET_NO;
140 int failed = GNUNET_NO;
141 int c; 140 int c;
142 141
143 if (n != NULL) 142 if (n != NULL)
@@ -146,25 +145,21 @@ void name_lookup_proc (void *cls,
146 if (0 != memcmp (zone_key, &pubkey, sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded))) 145 if (0 != memcmp (zone_key, &pubkey, sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded)))
147 { 146 {
148 GNUNET_break (0); 147 GNUNET_break (0);
149 failed = GNUNET_YES;
150 } 148 }
151 149
152 if (0 != memcmp (signature, s_signature, sizeof (struct GNUNET_CRYPTO_RsaSignature))) 150 if (0 != memcmp (signature, s_signature, sizeof (struct GNUNET_CRYPTO_RsaSignature)))
153 { 151 {
154 GNUNET_break (0); 152 GNUNET_break (0);
155 failed = GNUNET_YES;
156 } 153 }
157 154
158 if (0 != strcmp(n, s_name)) 155 if (0 != strcmp(n, s_name))
159 { 156 {
160 GNUNET_break (0); 157 GNUNET_break (0);
161 failed = GNUNET_YES;
162 } 158 }
163 159
164 if (RECORDS != rd_count) 160 if (RECORDS != rd_count)
165 { 161 {
166 GNUNET_break (0); 162 GNUNET_break (0);
167 failed = GNUNET_YES;
168 } 163 }
169 164
170 for (c = 0; c < RECORDS; c++) 165 for (c = 0; c < RECORDS; c++)
@@ -172,7 +167,6 @@ void name_lookup_proc (void *cls,
172 if (GNUNET_NO == GNUNET_NAMESTORE_records_cmp (&rd[c], &s_rd[c])) 167 if (GNUNET_NO == GNUNET_NAMESTORE_records_cmp (&rd[c], &s_rd[c]))
173 { 168 {
174 GNUNET_break (0); 169 GNUNET_break (0);
175 failed = GNUNET_YES;
176 } 170 }
177 } 171 }
178 found = GNUNET_YES; 172 found = GNUNET_YES;