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/test_fs_publish_persistence.c | |
parent | 4d7904c62bb867c44e90b8e9f7cdbb4b283abc44 (diff) | |
download | gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.tar.gz gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.zip |
even nicer indentation, thanks to LRN's indent patch
Diffstat (limited to 'src/fs/test_fs_publish_persistence.c')
-rw-r--r-- | src/fs/test_fs_publish_persistence.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/fs/test_fs_publish_persistence.c b/src/fs/test_fs_publish_persistence.c index f69ac5d9a..704c2a4c0 100644 --- a/src/fs/test_fs_publish_persistence.c +++ b/src/fs/test_fs_publish_persistence.c | |||
@@ -97,8 +97,8 @@ abort_publish_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
97 | } | 97 | } |
98 | 98 | ||
99 | 99 | ||
100 | static void *progress_cb (void *cls, | 100 | static void * |
101 | const struct GNUNET_FS_ProgressInfo *event); | 101 | progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event); |
102 | 102 | ||
103 | 103 | ||
104 | static void | 104 | static void |
@@ -149,8 +149,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
149 | printf ("Publish complete, %llu kbps.\n", | 149 | printf ("Publish complete, %llu kbps.\n", |
150 | (unsigned long long) (FILESIZE * 1000LL / | 150 | (unsigned long long) (FILESIZE * 1000LL / |
151 | (1 + | 151 | (1 + |
152 | GNUNET_TIME_absolute_get_duration (start). | 152 | GNUNET_TIME_absolute_get_duration |
153 | rel_value) / 1024)); | 153 | (start).rel_value) / 1024)); |
154 | if (0 == strcmp ("publish-context-dir", event->value.publish.cctx)) | 154 | if (0 == strcmp ("publish-context-dir", event->value.publish.cctx)) |
155 | GNUNET_SCHEDULER_add_now (&abort_publish_task, NULL); | 155 | GNUNET_SCHEDULER_add_now (&abort_publish_task, NULL); |
156 | break; | 156 | break; |
@@ -163,8 +163,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
163 | (unsigned long long) event->value.publish.completed, | 163 | (unsigned long long) event->value.publish.completed, |
164 | (unsigned long long) event->value.publish.size, | 164 | (unsigned long long) event->value.publish.size, |
165 | event->value.publish.specifics.progress.depth, | 165 | event->value.publish.specifics.progress.depth, |
166 | (unsigned long long) event->value.publish.specifics.progress. | 166 | (unsigned long long) event->value.publish.specifics. |
167 | offset); | 167 | progress.offset); |
168 | #endif | 168 | #endif |
169 | break; | 169 | break; |
170 | case GNUNET_FS_STATUS_PUBLISH_SUSPEND: | 170 | case GNUNET_FS_STATUS_PUBLISH_SUSPEND: |
@@ -175,8 +175,9 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
175 | if (NULL == publish) | 175 | if (NULL == publish) |
176 | { | 176 | { |
177 | GNUNET_assert (GNUNET_YES == | 177 | GNUNET_assert (GNUNET_YES == |
178 | GNUNET_FS_file_information_is_directory (event->value. | 178 | GNUNET_FS_file_information_is_directory (event-> |
179 | publish.fi)); | 179 | value.publish. |
180 | fi)); | ||
180 | publish = event->value.publish.pc; | 181 | publish = event->value.publish.pc; |
181 | return "publish-context-dir"; | 182 | return "publish-context-dir"; |
182 | } | 183 | } |