diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-02-15 13:58:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-02-15 13:58:52 +0000 |
commit | bdeb59bc30331d6fd9f05d56d44a30f281b46195 (patch) | |
tree | 4ed1830fec733e90ac15323b4e4851f704a35c64 /src/fs/fs_search.c | |
parent | 140fdac7581295bd7d9dd90ead81bf31f8473cbf (diff) | |
download | gnunet-bdeb59bc30331d6fd9f05d56d44a30f281b46195.tar.gz gnunet-bdeb59bc30331d6fd9f05d56d44a30f281b46195.zip |
-fixes to make stream tests pass with ecc in core
Diffstat (limited to 'src/fs/fs_search.c')
-rw-r--r-- | src/fs/fs_search.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c index 3f0a4a374..ffa2d61aa 100644 --- a/src/fs/fs_search.c +++ b/src/fs/fs_search.c | |||
@@ -400,7 +400,7 @@ GNUNET_FS_search_start_probe_ (struct GNUNET_FS_SearchResult *sr) | |||
400 | return; | 400 | return; |
401 | if (sr->availability_trials > AVAILABILITY_TRIALS_MAX) | 401 | if (sr->availability_trials > AVAILABILITY_TRIALS_MAX) |
402 | return; | 402 | return; |
403 | if ( (chk != sr->uri->type) && (loc != sr->uri->type)) | 403 | if ( (GNUNET_FS_URI_CHK != sr->uri->type) && (GNUNET_FS_URI_LOC != sr->uri->type)) |
404 | return; | 404 | return; |
405 | len = GNUNET_FS_uri_chk_get_file_size (sr->uri); | 405 | len = GNUNET_FS_uri_chk_get_file_size (sr->uri); |
406 | if (0 == len) | 406 | if (0 == len) |
@@ -566,7 +566,7 @@ process_sks_result (struct GNUNET_FS_SearchContext *sc, const char *id_update, | |||
566 | /* search for updates */ | 566 | /* search for updates */ |
567 | if (0 == strlen (id_update)) | 567 | if (0 == strlen (id_update)) |
568 | return; /* no updates */ | 568 | return; /* no updates */ |
569 | uu.type = sks; | 569 | uu.type = GNUNET_FS_URI_SKS; |
570 | uu.data.sks.ns = sc->uri->data.sks.ns; | 570 | uu.data.sks.ns = sc->uri->data.sks.ns; |
571 | uu.data.sks.identifier = GNUNET_strdup (id_update); | 571 | uu.data.sks.identifier = GNUNET_strdup (id_update); |
572 | (void) search_start (sc->h, &uu, sc->anonymity, sc->options, NULL, sr); | 572 | (void) search_start (sc->h, &uu, sc->anonymity, sc->options, NULL, sr); |
@@ -729,7 +729,7 @@ process_nblock (struct GNUNET_FS_SearchContext *sc, const struct NBlock *nb, | |||
729 | } | 729 | } |
730 | 730 | ||
731 | uri = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri)); | 731 | uri = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri)); |
732 | uri->type = sks; | 732 | uri->type = GNUNET_FS_URI_SKS; |
733 | uri->data.sks.identifier = GNUNET_strdup (pt); | 733 | uri->data.sks.identifier = GNUNET_strdup (pt); |
734 | GNUNET_CRYPTO_hash (&nb->subspace, | 734 | GNUNET_CRYPTO_hash (&nb->subspace, |
735 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), | 735 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), |