diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
commit | 16a6919a9f98ee9fa1fee9dd262906c321004a19 (patch) | |
tree | e09d4fe5191dc329b3e1b667f2914f8313bcba59 /src/fs | |
parent | 4d7904c62bb867c44e90b8e9f7cdbb4b283abc44 (diff) |
even nicer indentation, thanks to LRN's indent patch
Diffstat (limited to 'src/fs')
39 files changed, 512 insertions, 488 deletions
diff --git a/src/fs/fs.c b/src/fs/fs.c index e26a01996d..fc1388a04f 100644 --- a/src/fs/fs.c +++ b/src/fs/fs.c @@ -72,8 +72,8 @@ stop_job (struct GNUNET_FS_QueueEntry *qe) qe->h->active_blocks -= qe->blocks; qe->run_time = GNUNET_TIME_relative_add (qe->run_time, - GNUNET_TIME_absolute_get_duration (qe-> - start_time)); + GNUNET_TIME_absolute_get_duration + (qe->start_time)); GNUNET_CONTAINER_DLL_remove (qe->h->running_head, qe->h->running_tail, qe); GNUNET_CONTAINER_DLL_insert_after (qe->h->pending_head, qe->h->pending_tail, qe->h->pending_tail, qe); @@ -638,12 +638,8 @@ read_start_time (struct GNUNET_BIO_ReadHandle *rh, * the infromation * @return NULL on error */ -static struct GNUNET_FS_FileInformation *deserialize_file_information (struct - GNUNET_FS_Handle - *h, - const - char - *filename); +static struct GNUNET_FS_FileInformation * +deserialize_file_information (struct GNUNET_FS_Handle *h, const char *filename); /** @@ -1152,8 +1148,8 @@ GNUNET_FS_file_information_sync_ (struct GNUNET_FS_FileInformation *fi) (GNUNET_OK != GNUNET_BIO_write_string (wh, (fi->data.dir.entries == - NULL) ? NULL : fi->data.dir.entries-> - serialization))) + NULL) ? NULL : fi->data.dir. + entries->serialization))) { GNUNET_break (0); goto cleanup; @@ -1566,9 +1562,9 @@ read_download_request (struct GNUNET_BIO_ReadHandle *rh) (GNUNET_OK != GNUNET_BIO_read_int32 (rh, &dr->num_children)) || (dr->num_children > CHK_PER_INODE) || (GNUNET_OK != GNUNET_BIO_read_int32 (rh, &dr->depth)) || ((dr->depth == 0) - && (dr-> - num_children - > 0)) || + && + (dr->num_children + > 0)) || ((dr->depth > 0) && (dr->num_children == 0))) { GNUNET_break (0); @@ -2017,11 +2013,12 @@ cleanup: * @param search associated search * @param serialization name under which the search was serialized */ -static void deserialize_download (struct GNUNET_FS_Handle *h, - struct GNUNET_BIO_ReadHandle *rh, - struct GNUNET_FS_DownloadContext *parent, - struct GNUNET_FS_SearchResult *search, - const char *serialization); +static void +deserialize_download (struct GNUNET_FS_Handle *h, + struct GNUNET_BIO_ReadHandle *rh, + struct GNUNET_FS_DownloadContext *parent, + struct GNUNET_FS_SearchResult *search, + const char *serialization); /** @@ -2032,16 +2029,11 @@ static void deserialize_download (struct GNUNET_FS_Handle *h, * @param psearch_result parent search result * @param serialization name under which the search was serialized */ -static struct GNUNET_FS_SearchContext *deserialize_search (struct - GNUNET_FS_Handle *h, - struct - GNUNET_BIO_ReadHandle - *rh, - struct - GNUNET_FS_SearchResult - *psearch_result, - const char - *serialization); +static struct GNUNET_FS_SearchContext * +deserialize_search (struct GNUNET_FS_Handle *h, + struct GNUNET_BIO_ReadHandle *rh, + struct GNUNET_FS_SearchResult *psearch_result, + const char *serialization); /** @@ -2203,7 +2195,8 @@ signal_download_resume (struct GNUNET_FS_DownloadContext *dc) * * @param sc search being resumed */ -static void signal_search_resume (struct GNUNET_FS_SearchContext *sc); +static void +signal_search_resume (struct GNUNET_FS_SearchContext *sc); /** @@ -2255,7 +2248,8 @@ signal_result_resume (void *cls, const GNUNET_HashCode * key, void *value) * * @param sc search context to free */ -static void free_search_context (struct GNUNET_FS_SearchContext *sc); +static void +free_search_context (struct GNUNET_FS_SearchContext *sc); /** diff --git a/src/fs/fs.h b/src/fs/fs.h index 68bab59166..11cfc755ef 100644 --- a/src/fs/fs.h +++ b/src/fs/fs.h @@ -759,17 +759,17 @@ struct GNUNET_FS_SearchResult * @param blocks number of blocks this download has * @return queue handle */ -struct GNUNET_FS_QueueEntry *GNUNET_FS_queue_ (struct GNUNET_FS_Handle *h, - GNUNET_FS_QueueStart start, - GNUNET_FS_QueueStop stop, - void *cls, unsigned int blocks); +struct GNUNET_FS_QueueEntry * +GNUNET_FS_queue_ (struct GNUNET_FS_Handle *h, GNUNET_FS_QueueStart start, + GNUNET_FS_QueueStop stop, void *cls, unsigned int blocks); /** * Dequeue a job from the queue. * @param qh handle for the job */ -void GNUNET_FS_dequeue_ (struct GNUNET_FS_QueueEntry *qh); +void +GNUNET_FS_dequeue_ (struct GNUNET_FS_QueueEntry *qh); /** @@ -788,9 +788,9 @@ void GNUNET_FS_dequeue_ (struct GNUNET_FS_QueueEntry *qh); * @param emsg location for the reader to store an error message * @return number of bytes written, usually "max", 0 on error */ -size_t GNUNET_FS_data_reader_file_ (void *cls, uint64_t offset, - size_t max, void *buf, - char **emsg); +size_t +GNUNET_FS_data_reader_file_ (void *cls, uint64_t offset, size_t max, void *buf, + char **emsg); /** @@ -799,7 +799,8 @@ size_t GNUNET_FS_data_reader_file_ (void *cls, uint64_t offset, * @param filename file to read * @return closure to use */ -void *GNUNET_FS_make_file_reader_context_ (const char *filename); +void * +GNUNET_FS_make_file_reader_context_ (const char *filename); @@ -819,8 +820,9 @@ void *GNUNET_FS_make_file_reader_context_ (const char *filename); * @param emsg location for the reader to store an error message * @return number of bytes written, usually "max", 0 on error */ -size_t GNUNET_FS_data_reader_copy_ (void *cls, uint64_t offset, size_t max, - void *buf, char **emsg); +size_t +GNUNET_FS_data_reader_copy_ (void *cls, uint64_t offset, size_t max, void *buf, + char **emsg); /** * Notification of FS that a search probe has made progress. @@ -837,9 +839,9 @@ size_t GNUNET_FS_data_reader_copy_ (void *cls, uint64_t offset, size_t max, * will be passed to future callbacks in the respective * field in the GNUNET_FS_ProgressInfo struct. */ -void *GNUNET_FS_search_probe_progress_ (void *cls, - const struct GNUNET_FS_ProgressInfo - *info); +void * +GNUNET_FS_search_probe_progress_ (void *cls, + const struct GNUNET_FS_ProgressInfo *info); /** @@ -848,8 +850,9 @@ void *GNUNET_FS_search_probe_progress_ (void *cls, * @param cls "struct GNUNET_FS_PublishContext" identifies the upload * @param tc task context */ -void GNUNET_FS_publish_main_ (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc); +void +GNUNET_FS_publish_main_ (void *cls, + const struct GNUNET_SCHEDULER_TaskContext *tc); /** @@ -859,8 +862,8 @@ void GNUNET_FS_publish_main_ (void *cls, * @param cls closure, unindex context * @param file_id computed hash, NULL on error */ -void GNUNET_FS_unindex_process_hash_ (void *cls, - const GNUNET_HashCode * file_id); +void +GNUNET_FS_unindex_process_hash_ (void *cls, const GNUNET_HashCode * file_id); /** @@ -873,10 +876,11 @@ void GNUNET_FS_unindex_process_hash_ (void *cls, * @param offset where in the file are we so far * @return value returned from callback */ -void *GNUNET_FS_publish_make_status_ (struct GNUNET_FS_ProgressInfo *pi, - struct GNUNET_FS_PublishContext *sc, - const struct GNUNET_FS_FileInformation *p, - uint64_t offset); +void * +GNUNET_FS_publish_make_status_ (struct GNUNET_FS_ProgressInfo *pi, + struct GNUNET_FS_PublishContext *sc, + const struct GNUNET_FS_FileInformation *p, + uint64_t offset); /** @@ -886,8 +890,9 @@ void *GNUNET_FS_publish_make_status_ (struct GNUNET_FS_ProgressInfo *pi, * @param pi structure to fill in * @param dc overall download context */ -void GNUNET_FS_download_make_status_ (struct GNUNET_FS_ProgressInfo *pi, - struct GNUNET_FS_DownloadContext *dc); +void +GNUNET_FS_download_make_status_ (struct GNUNET_FS_ProgressInfo *pi, + struct GNUNET_FS_DownloadContext *dc); /** @@ -897,9 +902,9 @@ void GNUNET_FS_download_make_status_ (struct GNUNET_FS_ProgressInfo *pi, * @param cls the 'struct GNUNET_FS_DownloadContext' * @param tc scheduler context */ -void GNUNET_FS_download_start_task_ (void *cls, - const struct GNUNET_SCHEDULER_TaskContext - *tc); +void +GNUNET_FS_download_start_task_ (void *cls, + const struct GNUNET_SCHEDULER_TaskContext *tc); @@ -911,9 +916,10 @@ void GNUNET_FS_download_start_task_ (void *cls, * @param uc overall unindex context * @param offset where we are in the file (for progress) */ -void GNUNET_FS_unindex_make_status_ (struct GNUNET_FS_ProgressInfo *pi, - struct GNUNET_FS_UnindexContext *uc, - uint64_t offset); +void +GNUNET_FS_unindex_make_status_ (struct GNUNET_FS_ProgressInfo *pi, + struct GNUNET_FS_UnindexContext *uc, + uint64_t offset); /** * Fill in all of the generic fields for a search event and @@ -923,8 +929,9 @@ void GNUNET_FS_unindex_make_status_ (struct GNUNET_FS_ProgressInfo *pi, * @param sc overall search context * @return value returned by the callback */ -void *GNUNET_FS_search_make_status_ (struct GNUNET_FS_ProgressInfo *pi, - struct GNUNET_FS_SearchContext *sc); +void * +GNUNET_FS_search_make_status_ (struct GNUNET_FS_ProgressInfo *pi, + struct GNUNET_FS_SearchContext *sc); /** @@ -932,7 +939,8 @@ void *GNUNET_FS_search_make_status_ (struct GNUNET_FS_ProgressInfo *pi, * * @param uc context for the unindex operation. */ -void GNUNET_FS_unindex_do_remove_ (struct GNUNET_FS_UnindexContext *uc); +void +GNUNET_FS_unindex_do_remove_ (struct GNUNET_FS_UnindexContext *uc); /** * Build the request and actually initiate the search using the @@ -941,15 +949,16 @@ void GNUNET_FS_unindex_do_remove_ (struct GNUNET_FS_UnindexContext *uc); * @param sc search context * @return GNUNET_OK on success, GNUNET_SYSERR on error */ -int GNUNET_FS_search_start_searching_ (struct GNUNET_FS_SearchContext *sc); +int +GNUNET_FS_search_start_searching_ (struct GNUNET_FS_SearchContext *sc); /** * Start the downloading process (by entering the queue). * * @param dc our download context */ -void GNUNET_FS_download_start_downloading_ (struct GNUNET_FS_DownloadContext - *dc); +void +GNUNET_FS_download_start_downloading_ (struct GNUNET_FS_DownloadContext *dc); /** @@ -957,7 +966,8 @@ void GNUNET_FS_download_start_downloading_ (struct GNUNET_FS_DownloadContext * * @param sr the search result */ -void GNUNET_FS_search_start_probe_ (struct GNUNET_FS_SearchResult *sr); +void +GNUNET_FS_search_start_probe_ (struct GNUNET_FS_SearchResult *sr); /** * Remove serialization/deserialization file from disk. @@ -966,8 +976,9 @@ void GNUNET_FS_search_start_probe_ (struct GNUNET_FS_SearchResult *sr); * @param ext component of the path * @param ent entity identifier */ -void GNUNET_FS_remove_sync_file_ (struct GNUNET_FS_Handle *h, const char *ext, - const char *ent); +void +GNUNET_FS_remove_sync_file_ (struct GNUNET_FS_Handle *h, const char *ext, + const char *ent); /** @@ -977,8 +988,9 @@ void GNUNET_FS_remove_sync_file_ (struct GNUNET_FS_Handle *h, const char *ext, * @param ext component of the path * @param uni unique name of parent */ -void GNUNET_FS_remove_sync_dir_ (struct GNUNET_FS_Handle *h, const char *ext, - const char *uni); +void +GNUNET_FS_remove_sync_dir_ (struct GNUNET_FS_Handle *h, const char *ext, + const char *uni); /** @@ -989,7 +1001,8 @@ void GNUNET_FS_remove_sync_dir_ (struct GNUNET_FS_Handle *h, const char *ext, * * @param fi the struct to sync */ -void GNUNET_FS_file_information_sync_ (struct GNUNET_FS_FileInformation *f); +void +GNUNET_FS_file_information_sync_ (struct GNUNET_FS_FileInformation *f); /** * Synchronize this publishing struct with its mirror @@ -999,7 +1012,8 @@ void GNUNET_FS_file_information_sync_ (struct GNUNET_FS_FileInformation *f); * * @param pc the struct to sync */ -void GNUNET_FS_publish_sync_ (struct GNUNET_FS_PublishContext *pc); +void +GNUNET_FS_publish_sync_ (struct GNUNET_FS_PublishContext *pc); /** * Synchronize this unindex struct with its mirror @@ -1009,7 +1023,8 @@ void GNUNET_FS_publish_sync_ (struct GNUNET_FS_PublishContext *pc); * * @param uc the struct to sync */ -void GNUNET_FS_unindex_sync_ (struct GNUNET_FS_UnindexContext *uc); +void +GNUNET_FS_unindex_sync_ (struct GNUNET_FS_UnindexContext *uc); /** * Synchronize this search struct with its mirror @@ -1019,7 +1034,8 @@ void GNUNET_FS_unindex_sync_ (struct GNUNET_FS_UnindexContext *uc); * * @param sc the struct to sync */ -void GNUNET_FS_search_sync_ (struct GNUNET_FS_SearchContext *sc); +void +GNUNET_FS_search_sync_ (struct GNUNET_FS_SearchContext *sc); /** * Synchronize this search result with its mirror @@ -1029,7 +1045,8 @@ void GNUNET_FS_search_sync_ (struct GNUNET_FS_SearchContext *sc); * * @param sr the struct to sync */ -void GNUNET_FS_search_result_sync_ (struct GNUNET_FS_SearchResult *sr); +void +GNUNET_FS_search_result_sync_ (struct GNUNET_FS_SearchResult *sr); /** * Synchronize this download struct with its mirror @@ -1039,7 +1056,8 @@ void GNUNET_FS_search_result_sync_ (struct GNUNET_FS_SearchResult *sr); * * @param dc the struct to sync */ -void GNUNET_FS_download_sync_ (struct GNUNET_FS_DownloadContext *dc); +void +GNUNET_FS_download_sync_ (struct GNUNET_FS_DownloadContext *dc); /** * Create SUSPEND event for the given publish operation @@ -1047,7 +1065,8 @@ void GNUNET_FS_download_sync_ (struct GNUNET_FS_DownloadContext *dc); * * @param cls the 'struct GNUNET_FS_PublishContext' to signal for */ -void GNUNET_FS_publish_signal_suspend_ (void *cls); +void +GNUNET_FS_publish_signal_suspend_ (void *cls); /** * Create SUSPEND event for the given search operation @@ -1055,7 +1074,8 @@ void GNUNET_FS_publish_signal_suspend_ (void *cls); * * @param cls the 'struct GNUNET_FS_SearchContext' to signal for */ -void GNUNET_FS_search_signal_suspend_ (void *cls); +void +GNUNET_FS_search_signal_suspend_ (void *cls); /** * Create SUSPEND event for the given download operation @@ -1063,7 +1083,8 @@ void GNUNET_FS_search_signal_suspend_ (void *cls); * * @param cls the 'struct GNUNET_FS_DownloadContext' to signal for */ -void GNUNET_FS_download_signal_suspend_ (void *cls); +void +GNUNET_FS_download_signal_suspend_ (void *cls); /** * Create SUSPEND event for the given unindex operation @@ -1071,7 +1092,8 @@ void GNUNET_FS_download_signal_suspend_ (void *cls); * * @param cls the 'struct GNUNET_FS_UnindexContext' to signal for */ -void GNUNET_FS_unindex_signal_suspend_ (void *cls); +void +GNUNET_FS_unindex_signal_suspend_ (void *cls); /** * Function signature of the functions that can be called @@ -1118,9 +1140,9 @@ struct TopLevelActivity * @param ssf_cls closure for ssf * @return fresh top-level activity handle */ -struct TopLevelActivity *GNUNET_FS_make_top (struct GNUNET_FS_Handle *h, - SuspendSignalFunction ssf, - void *ssf_cls); +struct TopLevelActivity * +GNUNET_FS_make_top (struct GNUNET_FS_Handle *h, SuspendSignalFunction ssf, + void *ssf_cls); /** @@ -1129,8 +1151,8 @@ struct TopLevelActivity *GNUNET_FS_make_top (struct GNUNET_FS_Handle *h, * @param h global fs handle * @param top top level activity entry */ -void GNUNET_FS_end_top (struct GNUNET_FS_Handle *h, - struct TopLevelActivity *top); +void +GNUNET_FS_end_top (struct GNUNET_FS_Handle *h, struct TopLevelActivity *top); @@ -1736,7 +1758,8 @@ struct DownloadRequest * * @param dr request to free */ -void GNUNET_FS_free_download_request_ (struct DownloadRequest *dr); +void +GNUNET_FS_free_download_request_ (struct DownloadRequest *dr); /** diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index a3c5b9b628..89de277da6 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c @@ -143,7 +143,8 @@ GNUNET_FS_download_make_status_ (struct GNUNET_FS_ProgressInfo *pi, * @param buf where the callee should write the message * @return number of bytes written to buf */ -static size_t transmit_download_request (void *cls, size_t size, void *buf); +static size_t +transmit_download_request (void *cls, size_t size, void *buf); /** @@ -194,8 +195,9 @@ struct ProcessResultClosure * @param value value in the hash map (a 'struct DownloadRequest') * @return GNUNET_YES (we should continue to iterate); unless serious error */ -static int process_result_with_request (void *cls, const GNUNET_HashCode * key, - void *value); +static int +process_result_with_request (void *cls, const GNUNET_HashCode * key, + void *value); /** @@ -261,7 +263,8 @@ encrypt_existing_match (struct GNUNET_FS_DownloadContext *dc, * * @param dc download context that is having trouble */ -static void try_reconnect (struct GNUNET_FS_DownloadContext *dc); +static void +try_reconnect (struct GNUNET_FS_DownloadContext *dc); /** @@ -275,10 +278,11 @@ static void try_reconnect (struct GNUNET_FS_DownloadContext *dc); * @param length number of bytes in data * @param data contents of the file (or NULL if they were not inlined) */ -static void trigger_recursive_download (void *cls, const char *filename, - const struct GNUNET_FS_Uri *uri, - const struct GNUNET_CONTAINER_MetaData - *meta, size_t length, const void *data); +static void +trigger_recursive_download (void *cls, const char *filename, + const struct GNUNET_FS_Uri *uri, + const struct GNUNET_CONTAINER_MetaData *meta, + size_t length, const void *data); /** @@ -940,8 +944,8 @@ process_result_with_request (void *cls, const GNUNET_HashCode * key, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received block `%s' matching pending request at depth %u and offset %llu/%llu\n", GNUNET_h2s (key), dr->depth, (unsigned long long) dr->offset, - (unsigned long long) GNUNET_ntohll (dc->uri->data.chk. - file_length)); + (unsigned long long) GNUNET_ntohll (dc->uri->data. + chk.file_length)); #endif bs = GNUNET_FS_tree_calculate_block_size (GNUNET_ntohll @@ -953,8 +957,8 @@ process_result_with_request (void *cls, const GNUNET_HashCode * key, _ ("Internal error or bogus download URI (expected %u bytes at depth %u and offset %llu/%llu, got %u bytes)\n"), bs, dr->depth, (unsigned long long) dr->offset, - (unsigned long long) GNUNET_ntohll (dc->uri->data.chk. - file_length), + (unsigned long long) GNUNET_ntohll (dc->uri->data. + chk.file_length), prc->size); GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "%s", dc->emsg); while (dr->parent != NULL) @@ -1077,8 +1081,8 @@ process_result_with_request (void *cls, const GNUNET_HashCode * key, #if DEBUG_DOWNLOAD GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Download completed, truncating file to desired length %llu\n", - (unsigned long long) GNUNET_ntohll (dc->uri->data.chk. - file_length)); + (unsigned long long) GNUNET_ntohll (dc->uri->data. + chk.file_length)); #endif /* truncate file to size (since we store IBlocks at the end) */ if (dc->filename != NULL) @@ -1757,8 +1761,7 @@ GNUNET_FS_download_start_task_ (void *cls, GNUNET_DISK_OPEN_READWRITE | GNUNET_DISK_OPEN_CREATE | ((0 == - GNUNET_FS_uri_chk_get_file_size (dc-> - uri)) ? + GNUNET_FS_uri_chk_get_file_size (dc->uri)) ? GNUNET_DISK_OPEN_TRUNCATE : 0), GNUNET_DISK_PERM_USER_READ | GNUNET_DISK_PERM_USER_WRITE | diff --git a/src/fs/fs_file_information.c b/src/fs/fs_file_information.c index 6809e30555..a67b22036c 100644 --- a/src/fs/fs_file_information.c +++ b/src/fs/fs_file_information.c @@ -638,8 +638,8 @@ GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir, no = GNUNET_NO; if (GNUNET_OK != proc (proc_cls, dir, - (dir->is_directory) ? dir->data.dir.dir_size : dir->data.file. - file_size, dir->meta, &dir->keywords, &dir->bo, + (dir->is_directory) ? dir->data.dir.dir_size : dir->data. + file.file_size, dir->meta, &dir->keywords, &dir->bo, (dir->is_directory) ? &no : &dir->data.file.do_index, &dir->client_info)) return; @@ -651,8 +651,8 @@ GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir, no = GNUNET_NO; if (GNUNET_OK != proc (proc_cls, pos, - (pos->is_directory) ? pos->data.dir.dir_size : pos->data.file. - file_size, pos->meta, &pos->keywords, &pos->bo, + (pos->is_directory) ? pos->data.dir.dir_size : pos->data. + file.file_size, pos->meta, &pos->keywords, &pos->bo, (dir->is_directory) ? &no : &dir->data.file.do_index, &pos->client_info)) break; diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c index 746f4f0994..94641e9349 100644 --- a/src/fs/fs_publish.c +++ b/src/fs/fs_publish.c @@ -179,8 +179,8 @@ signal_publish_completion (struct GNUNET_FS_FileInformation *p, pi.value.publish.specifics.completed.chk_uri = p->chk_uri; p->client_info = GNUNET_FS_publish_make_status_ (&pi, pc, p, - GNUNET_ntohll (p->chk_uri->data.chk. - file_length)); + GNUNET_ntohll (p->chk_uri->data. + chk.file_length)); } @@ -1333,8 +1333,8 @@ struct PublishKskContext * @param cls closure of type "struct PublishKskContext*" * @param tc unused */ -static void publish_ksk_cont (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc); +static void +publish_ksk_cont (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); /** diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c index 89a8c55820..0c47eb1738 100644 --- a/src/fs/fs_search.c +++ b/src/fs/fs_search.c @@ -440,15 +440,10 @@ process_ksk_result (struct GNUNET_FS_SearchContext *sc, * @param psearch parent search result (for namespace update searches) * @return context that can be used to control the search */ -static struct GNUNET_FS_SearchContext *search_start (struct GNUNET_FS_Handle *h, - const struct GNUNET_FS_Uri - *uri, uint32_t anonymity, - enum - GNUNET_FS_SearchOptions - options, void *cctx, - struct - GNUNET_FS_SearchResult - *psearch); +static struct GNUNET_FS_SearchContext * +search_start (struct GNUNET_FS_Handle *h, const struct GNUNET_FS_Uri *uri, + uint32_t anonymity, enum GNUNET_FS_SearchOptions options, + void *cctx, struct GNUNET_FS_SearchResult *psearch); /** @@ -813,7 +808,8 @@ process_result (struct GNUNET_FS_SearchContext *sc, enum GNUNET_BLOCK_Type type, * * @param sc the search to reconnec */ -static void try_reconnect (struct GNUNET_FS_SearchContext *sc); +static void +try_reconnect (struct GNUNET_FS_SearchContext *sc); |