diff options
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r-- | src/fs/fs_api.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c index 4265d8d51..28c887ddd 100644 --- a/src/fs/fs_api.c +++ b/src/fs/fs_api.c | |||
@@ -819,7 +819,7 @@ deserialize_fi_node (struct GNUNET_FS_Handle *h, const char *fn, | |||
819 | if ((GNUNET_OK != GNUNET_BIO_read_int64 (rh, &ret->data.file.file_size)) || | 819 | if ((GNUNET_OK != GNUNET_BIO_read_int64 (rh, &ret->data.file.file_size)) || |
820 | (GNUNET_OK != | 820 | (GNUNET_OK != |
821 | GNUNET_BIO_read (rh, "fileid", &ret->data.file.file_id, | 821 | GNUNET_BIO_read (rh, "fileid", &ret->data.file.file_id, |
822 | sizeof (GNUNET_HashCode)))) | 822 | sizeof (struct GNUNET_HashCode)))) |
823 | { | 823 | { |
824 | GNUNET_break (0); | 824 | GNUNET_break (0); |
825 | goto cleanup; | 825 | goto cleanup; |
@@ -841,7 +841,7 @@ deserialize_fi_node (struct GNUNET_FS_Handle *h, const char *fn, | |||
841 | if ((GNUNET_OK != GNUNET_BIO_read_int64 (rh, &ret->data.file.file_size)) || | 841 | if ((GNUNET_OK != GNUNET_BIO_read_int64 (rh, &ret->data.file.file_size)) || |
842 | (GNUNET_OK != | 842 | (GNUNET_OK != |
843 | GNUNET_BIO_read (rh, "fileid", &ret->data.file.file_id, | 843 | GNUNET_BIO_read (rh, "fileid", &ret->data.file.file_id, |
844 | sizeof (GNUNET_HashCode)))) | 844 | sizeof (struct GNUNET_HashCode)))) |
845 | { | 845 | { |
846 | GNUNET_break (0); | 846 | GNUNET_break (0); |
847 | goto cleanup; | 847 | goto cleanup; |
@@ -1198,7 +1198,7 @@ GNUNET_FS_file_information_sync_ (struct GNUNET_FS_FileInformation *fi) | |||
1198 | if ((GNUNET_OK != GNUNET_BIO_write_int64 (wh, fi->data.file.file_size)) || | 1198 | if ((GNUNET_OK != GNUNET_BIO_write_int64 (wh, fi->data.file.file_size)) || |
1199 | (GNUNET_OK != | 1199 | (GNUNET_OK != |
1200 | GNUNET_BIO_write (wh, &fi->data.file.file_id, | 1200 | GNUNET_BIO_write (wh, &fi->data.file.file_id, |
1201 | sizeof (GNUNET_HashCode)))) | 1201 | sizeof (struct GNUNET_HashCode)))) |
1202 | { | 1202 | { |
1203 | GNUNET_break (0); | 1203 | GNUNET_break (0); |
1204 | goto cleanup; | 1204 | goto cleanup; |
@@ -1575,7 +1575,7 @@ GNUNET_FS_unindex_sync_ (struct GNUNET_FS_UnindexContext *uc) | |||
1575 | (GNUNET_OK != GNUNET_BIO_write_int32 (wh, (uint32_t) uc->ksk_offset)) || | 1575 | (GNUNET_OK != GNUNET_BIO_write_int32 (wh, (uint32_t) uc->ksk_offset)) || |
1576 | ((uc->state == UNINDEX_STATE_FS_NOTIFY) && | 1576 | ((uc->state == UNINDEX_STATE_FS_NOTIFY) && |
1577 | (GNUNET_OK != | 1577 | (GNUNET_OK != |
1578 | GNUNET_BIO_write (wh, &uc->file_id, sizeof (GNUNET_HashCode)))) || | 1578 | GNUNET_BIO_write (wh, &uc->file_id, sizeof (struct GNUNET_HashCode)))) || |
1579 | ((uc->state == UNINDEX_STATE_ERROR) && | 1579 | ((uc->state == UNINDEX_STATE_ERROR) && |
1580 | (GNUNET_OK != GNUNET_BIO_write_string (wh, uc->emsg)))) | 1580 | (GNUNET_OK != GNUNET_BIO_write_string (wh, uc->emsg)))) |
1581 | { | 1581 | { |
@@ -1875,7 +1875,7 @@ GNUNET_FS_search_result_sync_ (struct GNUNET_FS_SearchResult *sr) | |||
1875 | sr->update_search != | 1875 | sr->update_search != |
1876 | NULL ? sr->update_search->serialization : NULL)) | 1876 | NULL ? sr->update_search->serialization : NULL)) |
1877 | || (GNUNET_OK != GNUNET_BIO_write_meta_data (wh, sr->meta)) || | 1877 | || (GNUNET_OK != GNUNET_BIO_write_meta_data (wh, sr->meta)) || |
1878 | (GNUNET_OK != GNUNET_BIO_write (wh, &sr->key, sizeof (GNUNET_HashCode))) | 1878 | (GNUNET_OK != GNUNET_BIO_write (wh, &sr->key, sizeof (struct GNUNET_HashCode))) |
1879 | || (GNUNET_OK != GNUNET_BIO_write_int32 (wh, sr->mandatory_missing)) || | 1879 | || (GNUNET_OK != GNUNET_BIO_write_int32 (wh, sr->mandatory_missing)) || |
1880 | (GNUNET_OK != GNUNET_BIO_write_int32 (wh, sr->optional_support)) || | 1880 | (GNUNET_OK != GNUNET_BIO_write_int32 (wh, sr->optional_support)) || |
1881 | (GNUNET_OK != GNUNET_BIO_write_int32 (wh, sr->availability_success)) || | 1881 | (GNUNET_OK != GNUNET_BIO_write_int32 (wh, sr->availability_success)) || |
@@ -2045,7 +2045,7 @@ deserialize_unindex_file (void *cls, const char *filename) | |||
2045 | case UNINDEX_STATE_FS_NOTIFY: | 2045 | case UNINDEX_STATE_FS_NOTIFY: |
2046 | if (GNUNET_OK != | 2046 | if (GNUNET_OK != |
2047 | GNUNET_BIO_read (rh, "unindex-hash", &uc->file_id, | 2047 | GNUNET_BIO_read (rh, "unindex-hash", &uc->file_id, |
2048 | sizeof (GNUNET_HashCode))) | 2048 | sizeof (struct GNUNET_HashCode))) |
2049 | { | 2049 | { |
2050 | GNUNET_break (0); | 2050 | GNUNET_break (0); |
2051 | goto cleanup; | 2051 | goto cleanup; |
@@ -2211,7 +2211,7 @@ deserialize_search_result (void *cls, const char *filename) | |||
2211 | GNUNET_BIO_read_string (rh, "search-lnk", &update_srch, 16)) || | 2211 | GNUNET_BIO_read_string (rh, "search-lnk", &update_srch, 16)) || |
2212 | (GNUNET_OK != GNUNET_BIO_read_meta_data (rh, "result-meta", &sr->meta)) || | 2212 | (GNUNET_OK != GNUNET_BIO_read_meta_data (rh, "result-meta", &sr->meta)) || |
2213 | (GNUNET_OK != | 2213 | (GNUNET_OK != |
2214 | GNUNET_BIO_read (rh, "result-key", &sr->key, sizeof (GNUNET_HashCode))) | 2214 | GNUNET_BIO_read (rh, "result-key", &sr->key, sizeof (struct GNUNET_HashCode))) |
2215 | || (GNUNET_OK != GNUNET_BIO_read_int32 (rh, &sr->mandatory_missing)) || | 2215 | || (GNUNET_OK != GNUNET_BIO_read_int32 (rh, &sr->mandatory_missing)) || |
2216 | (GNUNET_OK != GNUNET_BIO_read_int32 (rh, &sr->optional_support)) || | 2216 | (GNUNET_OK != GNUNET_BIO_read_int32 (rh, &sr->optional_support)) || |
2217 | (GNUNET_OK != GNUNET_BIO_read_int32 (rh, &sr->availability_success)) || | 2217 | (GNUNET_OK != GNUNET_BIO_read_int32 (rh, &sr->availability_success)) || |
@@ -2346,7 +2346,7 @@ signal_search_resume (struct GNUNET_FS_SearchContext *sc); | |||
2346 | * @return GNUNET_YES (we should continue to iterate) | 2346 | * @return GNUNET_YES (we should continue to iterate) |
2347 | */ | 2347 | */ |
2348 | static int | 2348 | static int |
2349 | signal_result_resume (void *cls, const GNUNET_HashCode * key, void *value) | 2349 | signal_result_resume (void *cls, const struct GNUNET_HashCode * key, void *value) |
2350 | { | 2350 | { |
2351 | struct GNUNET_FS_SearchContext *sc = cls; | 2351 | struct GNUNET_FS_SearchContext *sc = cls; |
2352 | struct GNUNET_FS_ProgressInfo pi; | 2352 | struct GNUNET_FS_ProgressInfo pi; |
@@ -2398,7 +2398,7 @@ free_search_context (struct GNUNET_FS_SearchContext *sc); | |||
2398 | * @return GNUNET_YES (we should continue to iterate) | 2398 | * @return GNUNET_YES (we should continue to iterate) |
2399 | */ | 2399 | */ |
2400 | static int | 2400 | static int |
2401 | free_result (void *cls, const GNUNET_HashCode * key, void *value) | 2401 | free_result (void *cls, const struct GNUNET_HashCode * key, void *value) |
2402 | { | 2402 | { |
2403 | struct GNUNET_FS_SearchResult *sr = value; | 2403 | struct GNUNET_FS_SearchResult *sr = value; |
2404 | 2404 | ||