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_unindex_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_unindex_persistence.c')
-rw-r--r-- | src/fs/test_fs_unindex_persistence.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fs/test_fs_unindex_persistence.c b/src/fs/test_fs_unindex_persistence.c index 4fcd1445f..e81400817 100644 --- a/src/fs/test_fs_unindex_persistence.c +++ b/src/fs/test_fs_unindex_persistence.c | |||
@@ -94,8 +94,8 @@ abort_unindex_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
94 | } | 94 | } |
95 | 95 | ||
96 | 96 | ||
97 | static void *progress_cb (void *cls, | 97 | static void * |
98 | const struct GNUNET_FS_ProgressInfo *event); | 98 | progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event); |
99 | 99 | ||
100 | 100 | ||
101 | static void | 101 | static void |
@@ -141,16 +141,16 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
141 | (unsigned long long) event->value.publish.completed, | 141 | (unsigned long long) event->value.publish.completed, |
142 | (unsigned long long) event->value.publish.size, | 142 | (unsigned long long) event->value.publish.size, |
143 | event->value.publish.specifics.progress.depth, | 143 | event->value.publish.specifics.progress.depth, |
144 | (unsigned long long) event->value.publish.specifics.progress. | 144 | (unsigned long long) event->value.publish.specifics. |
145 | offset); | 145 | progress.offset); |
146 | #endif | 146 | #endif |
147 | break; | 147 | break; |
148 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: | 148 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: |
149 | printf ("Publishing complete, %llu kbps.\n", | 149 | printf ("Publishing complete, %llu kbps.\n", |
150 | (unsigned long long) (FILESIZE * 1000 / | 150 | (unsigned long long) (FILESIZE * 1000 / |
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 | start = GNUNET_TIME_absolute_get (); | 154 | start = GNUNET_TIME_absolute_get (); |
155 | unindex = GNUNET_FS_unindex_start (fs, fn, "unindex"); | 155 | unindex = GNUNET_FS_unindex_start (fs, fn, "unindex"); |
156 | GNUNET_assert (unindex != NULL); | 156 | GNUNET_assert (unindex != NULL); |
@@ -159,8 +159,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
159 | printf ("Unindex complete, %llu kbps.\n", | 159 | printf ("Unindex complete, %llu kbps.\n", |
160 | (unsigned long long) (FILESIZE * 1000 / | 160 | (unsigned long long) (FILESIZE * 1000 / |
161 | (1 + | 161 | (1 + |
162 | GNUNET_TIME_absolute_get_duration (start). | 162 | GNUNET_TIME_absolute_get_duration |
163 | rel_value) / 1024)); | 163 | (start).rel_value) / 1024)); |
164 | GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL, | 164 | GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL, |
165 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 165 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
166 | break; | 166 | break; |
@@ -172,8 +172,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
172 | (unsigned long long) event->value.unindex.completed, | 172 | (unsigned long long) event->value.unindex.completed, |
173 | (unsigned long long) event->value.unindex.size, | 173 | (unsigned long long) event->value.unindex.size, |
174 | event->value.unindex.specifics.progress.depth, | 174 | event->value.unindex.specifics.progress.depth, |
175 | (unsigned long long) event->value.unindex.specifics.progress. | 175 | (unsigned long long) event->value.unindex.specifics. |
176 | offset); | 176 | progress.offset); |
177 | #endif | 177 | #endif |
178 | break; | 178 | break; |
179 | case GNUNET_FS_STATUS_PUBLISH_SUSPEND: | 179 | case GNUNET_FS_STATUS_PUBLISH_SUSPEND: |