diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-29 10:19:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-29 10:19:43 +0000 |
commit | cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb (patch) | |
tree | b704e00a3af618b2cd174a7f89514eaebd82a1cf /src/fs/fs_publish.c | |
parent | bb4fc4f4007988874f910d4de5492f9629301641 (diff) | |
download | gnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.tar.gz gnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.zip |
run indent twice, it alternates between two 'canonical' forms, also run whitespace remover
Diffstat (limited to 'src/fs/fs_publish.c')
-rw-r--r-- | src/fs/fs_publish.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c index 94641e934..b286d41ca 100644 --- a/src/fs/fs_publish.c +++ b/src/fs/fs_publish.c | |||
@@ -38,7 +38,7 @@ | |||
38 | 38 | ||
39 | 39 | ||
40 | /** | 40 | /** |
41 | * Fill in all of the generic fields for | 41 | * Fill in all of the generic fields for |
42 | * a publish event and call the callback. | 42 | * a publish event and call the callback. |
43 | * | 43 | * |
44 | * @param pi structure to fill in | 44 | * @param pi structure to fill in |
@@ -216,7 +216,7 @@ signal_publish_error (struct GNUNET_FS_FileInformation *p, | |||
216 | 216 | ||
217 | /** | 217 | /** |
218 | * Datastore returns from reservation cancel request. | 218 | * Datastore returns from reservation cancel request. |
219 | * | 219 | * |
220 | * @param cls the 'struct GNUNET_FS_PublishContext' | 220 | * @param cls the 'struct GNUNET_FS_PublishContext' |
221 | * @param success success code (not used) | 221 | * @param success success code (not used) |
222 | * @param msg error message (typically NULL, not used) | 222 | * @param msg error message (typically NULL, not used) |
@@ -371,7 +371,7 @@ block_reader (void *cls, uint64_t offset, size_t max, void *buf, char **emsg) | |||
371 | { | 371 | { |
372 | pt_size = GNUNET_MIN (max, p->data.file.file_size - offset); | 372 | pt_size = GNUNET_MIN (max, p->data.file.file_size - offset); |
373 | if (pt_size == 0) | 373 | if (pt_size == 0) |
374 | return 0; /* calling reader with pt_size==0 | 374 | return 0; /* calling reader with pt_size==0 |
375 | * might free buf, so don't! */ | 375 | * might free buf, so don't! */ |
376 | if (pt_size != | 376 | if (pt_size != |
377 | p->data.file.reader (p->data.file.reader_cls, offset, pt_size, buf, | 377 | p->data.file.reader (p->data.file.reader_cls, offset, pt_size, buf, |
@@ -441,7 +441,7 @@ encode_cont (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
441 | * or (on error) "GNUNET_FS_tree_encode_finish". | 441 | * or (on error) "GNUNET_FS_tree_encode_finish". |
442 | * | 442 | * |
443 | * @param cls closure | 443 | * @param cls closure |
444 | * @param chk content hash key for the block | 444 | * @param chk content hash key for the block |
445 | * @param offset offset of the block in the file | 445 | * @param offset offset of the block in the file |
446 | * @param depth depth of the block in the file, 0 for DBLOCK | 446 | * @param depth depth of the block in the file, 0 for DBLOCK |
447 | * @param type type of the block (IBLOCK or DBLOCK) | 447 | * @param type type of the block (IBLOCK or DBLOCK) |
@@ -1059,7 +1059,7 @@ GNUNET_FS_publish_signal_suspend_ (void *cls) | |||
1059 | /** | 1059 | /** |
1060 | * We have gotten a reply for our space reservation request. | 1060 | * We have gotten a reply for our space reservation request. |
1061 | * Either fail (insufficient space) or start publishing for good. | 1061 | * Either fail (insufficient space) or start publishing for good. |
1062 | * | 1062 | * |
1063 | * @param cls the 'struct GNUNET_FS_PublishContext*' | 1063 | * @param cls the 'struct GNUNET_FS_PublishContext*' |
1064 | * @param success positive reservation ID on success | 1064 | * @param success positive reservation ID on success |
1065 | * @param msg error message on error, otherwise NULL | 1065 | * @param msg error message on error, otherwise NULL |
@@ -1096,9 +1096,9 @@ finish_reserve (void *cls, int success, const char *msg) | |||
1096 | * @param namespace namespace to publish the file in, NULL for no namespace | 1096 | * @param namespace namespace to publish the file in, NULL for no namespace |
1097 | * @param nid identifier to use for the publishd content in the namespace | 1097 | * @param nid identifier to use for the publishd content in the namespace |
1098 | * (can be NULL, must be NULL if namespace is NULL) | 1098 | * (can be NULL, must be NULL if namespace is NULL) |
1099 | * @param nuid update-identifier that will be used for future updates | 1099 | * @param nuid update-identifier that will be used for future updates |
1100 | * (can be NULL, must be NULL if namespace or nid is NULL) | 1100 | * (can be NULL, must be NULL if namespace or nid is NULL) |
1101 | * @param options options for the publication | 1101 | * @param options options for the publication |
1102 | * @return context that can be used to control the publish operation | 1102 | * @return context that can be used to control the publish operation |
1103 | */ | 1103 | */ |
1104 | struct GNUNET_FS_PublishContext * | 1104 | struct GNUNET_FS_PublishContext * |
@@ -1206,7 +1206,7 @@ fip_signal_stop (void *cls, struct GNUNET_FS_FileInformation *fi, | |||
1206 | 1206 | ||
1207 | 1207 | ||
1208 | /** | 1208 | /** |
1209 | * Stop an upload. Will abort incomplete uploads (but | 1209 | * Stop an upload. Will abort incomplete uploads (but |
1210 | * not remove blocks that have already been publishd) or | 1210 | * not remove blocks that have already been publishd) or |
1211 | * simply clean up the state for completed uploads. | 1211 | * simply clean up the state for completed uploads. |
1212 | * Must NOT be called from within the event callback! | 1212 | * Must NOT be called from within the event callback! |