diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:54:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:54:06 +0000 |
commit | 5746309cb4be2073d550ad7a6885e918631dbc38 (patch) | |
tree | 89455bc4aadf977816b38df13f990372cd81d71a /src/fs/fs_list_indexed.c | |
parent | 6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (diff) | |
download | gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.tar.gz gnunet-5746309cb4be2073d550ad7a6885e918631dbc38.zip |
indentation
Diffstat (limited to 'src/fs/fs_list_indexed.c')
-rw-r--r-- | src/fs/fs_list_indexed.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/fs/fs_list_indexed.c b/src/fs/fs_list_indexed.c index 1eb290f11..85e12db32 100644 --- a/src/fs/fs_list_indexed.c +++ b/src/fs/fs_list_indexed.c | |||
@@ -98,8 +98,7 @@ handle_index_info (void *cls, const struct GNUNET_MessageHeader *msg) | |||
98 | if (ntohs (msg->type) == GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_END) | 98 | if (ntohs (msg->type) == GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_END) |
99 | { | 99 | { |
100 | /* normal end-of-list */ | 100 | /* normal end-of-list */ |
101 | GNUNET_SCHEDULER_add_continuation (gic->cont, | 101 | GNUNET_SCHEDULER_add_continuation (gic->cont, gic->cont_cls, |
102 | gic->cont_cls, | ||
103 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 102 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
104 | GNUNET_CLIENT_disconnect (gic->client, GNUNET_NO); | 103 | GNUNET_CLIENT_disconnect (gic->client, GNUNET_NO); |
105 | GNUNET_free (gic); | 104 | GNUNET_free (gic); |
@@ -125,17 +124,15 @@ handle_index_info (void *cls, const struct GNUNET_MessageHeader *msg) | |||
125 | } | 124 | } |
126 | if (GNUNET_OK != gic->iterator (gic->iterator_cls, filename, &iim->file_id)) | 125 | if (GNUNET_OK != gic->iterator (gic->iterator_cls, filename, &iim->file_id)) |
127 | { | 126 | { |
128 | GNUNET_SCHEDULER_add_continuation (gic->cont, | 127 | GNUNET_SCHEDULER_add_continuation (gic->cont, gic->cont_cls, |
129 | gic->cont_cls, | ||
130 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 128 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
131 | GNUNET_CLIENT_disconnect (gic->client, GNUNET_NO); | 129 | GNUNET_CLIENT_disconnect (gic->client, GNUNET_NO); |
132 | GNUNET_free (gic); | 130 | GNUNET_free (gic); |
133 | return; | 131 | return; |
134 | } | 132 | } |
135 | /* get more */ | 133 | /* get more */ |
136 | GNUNET_CLIENT_receive (gic->client, | 134 | GNUNET_CLIENT_receive (gic->client, &handle_index_info, gic, |
137 | &handle_index_info, | 135 | GNUNET_CONSTANTS_SERVICE_TIMEOUT); |
138 | gic, GNUNET_CONSTANTS_SERVICE_TIMEOUT); | ||
139 | } | 136 | } |
140 | 137 | ||
141 | 138 | ||
@@ -153,8 +150,8 @@ handle_index_info (void *cls, const struct GNUNET_MessageHeader *msg) | |||
153 | void | 150 | void |
154 | GNUNET_FS_get_indexed_files (struct GNUNET_FS_Handle *h, | 151 | GNUNET_FS_get_indexed_files (struct GNUNET_FS_Handle *h, |
155 | GNUNET_FS_IndexedFileProcessor iterator, | 152 | GNUNET_FS_IndexedFileProcessor iterator, |
156 | void *iterator_cls, | 153 | void *iterator_cls, GNUNET_SCHEDULER_Task cont, |
157 | GNUNET_SCHEDULER_Task cont, void *cont_cls) | 154 | void *cont_cls) |
158 | { | 155 | { |
159 | struct GNUNET_CLIENT_Connection *client; | 156 | struct GNUNET_CLIENT_Connection *client; |
160 | struct GetIndexedContext *gic; | 157 | struct GetIndexedContext *gic; |
@@ -165,8 +162,7 @@ GNUNET_FS_get_indexed_files (struct GNUNET_FS_Handle *h, | |||
165 | { | 162 | { |
166 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 163 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
167 | _("Failed to not connect to `%s' service.\n"), "fs"); | 164 | _("Failed to not connect to `%s' service.\n"), "fs"); |
168 | GNUNET_SCHEDULER_add_continuation (cont, | 165 | GNUNET_SCHEDULER_add_continuation (cont, cont_cls, |
169 | cont_cls, | ||
170 | GNUNET_SCHEDULER_REASON_TIMEOUT); | 166 | GNUNET_SCHEDULER_REASON_TIMEOUT); |
171 | return; | 167 | return; |
172 | } | 168 | } |
@@ -181,8 +177,7 @@ GNUNET_FS_get_indexed_files (struct GNUNET_FS_Handle *h, | |||
181 | msg.size = htons (sizeof (struct GNUNET_MessageHeader)); | 177 | msg.size = htons (sizeof (struct GNUNET_MessageHeader)); |
182 | msg.type = htons (GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_GET); | 178 | msg.type = htons (GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_GET); |
183 | GNUNET_assert (GNUNET_OK == | 179 | GNUNET_assert (GNUNET_OK == |
184 | GNUNET_CLIENT_transmit_and_get_response (client, | 180 | GNUNET_CLIENT_transmit_and_get_response (client, &msg, |
185 | &msg, | ||
186 | GNUNET_CONSTANTS_SERVICE_TIMEOUT, | 181 | GNUNET_CONSTANTS_SERVICE_TIMEOUT, |
187 | GNUNET_YES, | 182 | GNUNET_YES, |
188 | &handle_index_info, | 183 | &handle_index_info, |