aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-02-15 13:58:52 +0000
committerChristian Grothoff <christian@grothoff.org>2013-02-15 13:58:52 +0000
commitbdeb59bc30331d6fd9f05d56d44a30f281b46195 (patch)
tree4ed1830fec733e90ac15323b4e4851f704a35c64 /src/fs/fs_api.c
parent140fdac7581295bd7d9dd90ead81bf31f8473cbf (diff)
downloadgnunet-bdeb59bc30331d6fd9f05d56d44a30f281b46195.tar.gz
gnunet-bdeb59bc30331d6fd9f05d56d44a30f281b46195.zip
-fixes to make stream tests pass with ecc in core
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r--src/fs/fs_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c
index 2770e8650..b7ae05527 100644
--- a/src/fs/fs_api.c
+++ b/src/fs/fs_api.c
@@ -2004,7 +2004,7 @@ GNUNET_FS_search_result_sync_ (struct GNUNET_FS_SearchResult *sr)
2004 goto cleanup; 2004 goto cleanup;
2005 } 2005 }
2006 if ( (NULL != sr->uri) && 2006 if ( (NULL != sr->uri) &&
2007 (ksk == sr->sc->uri->type) && 2007 (GNUNET_FS_URI_KSK == sr->sc->uri->type) &&
2008 (GNUNET_OK != GNUNET_BIO_write (wh, sr->keyword_bitmap, 2008 (GNUNET_OK != GNUNET_BIO_write (wh, sr->keyword_bitmap,
2009 (sr->sc->uri->data.ksk.keywordCount + 7) / 8)) ) 2009 (sr->sc->uri->data.ksk.keywordCount + 7) / 8)) )
2010 { 2010 {
@@ -2340,7 +2340,7 @@ deserialize_search_result (void *cls, const char *filename)
2340 GNUNET_break (0); 2340 GNUNET_break (0);
2341 goto cleanup; 2341 goto cleanup;
2342 } 2342 }
2343 if (ksk == sr->sc->uri->type) 2343 if (GNUNET_FS_URI_KSK == sr->sc->uri->type)
2344 { 2344 {
2345 sr->keyword_bitmap = GNUNET_malloc ((sr->sc->uri->data.ksk.keywordCount + 7) / 8); /* round up, count bits */ 2345 sr->keyword_bitmap = GNUNET_malloc ((sr->sc->uri->data.ksk.keywordCount + 7) / 8); /* round up, count bits */
2346 if (GNUNET_OK != GNUNET_BIO_read (rh, "keyword-bitmap", 2346 if (GNUNET_OK != GNUNET_BIO_read (rh, "keyword-bitmap",