diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-02-15 14:01:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-02-15 14:01:44 +0000 |
commit | 0ad72d359ab3ea5f232f4a8a0eb04700e8c84b49 (patch) | |
tree | 6a08051f08ff896ed9d61e80c8b74a1d282f8539 /src/fs/gnunet-service-fs_lc.c | |
parent | e3d12cb6fa5ddfb181dcade2e06888619f384457 (diff) | |
download | gnunet-0ad72d359ab3ea5f232f4a8a0eb04700e8c84b49.tar.gz gnunet-0ad72d359ab3ea5f232f4a8a0eb04700e8c84b49.zip |
stuff
Diffstat (limited to 'src/fs/gnunet-service-fs_lc.c')
-rw-r--r-- | src/fs/gnunet-service-fs_lc.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs_lc.c b/src/fs/gnunet-service-fs_lc.c index 469475fe0..e8d6bda47 100644 --- a/src/fs/gnunet-service-fs_lc.c +++ b/src/fs/gnunet-service-fs_lc.c | |||
@@ -190,13 +190,26 @@ GSF_local_client_lookup_ (struct GNUNET_SERVER_Client *client) | |||
190 | * @param pr handle to the original pending request | 190 | * @param pr handle to the original pending request |
191 | * @param data response data, NULL on request expiration | 191 | * @param data response data, NULL on request expiration |
192 | * @param data_len number of bytes in data | 192 | * @param data_len number of bytes in data |
193 | * @param more GNUNET_YES if the request remains active (may call | ||
194 | * this function again), GNUNET_NO if the request is | ||
195 | * finished (client must not call GSF_pending_request_cancel_) | ||
193 | */ | 196 | */ |
194 | static void | 197 | static void |
195 | client_response_handler (void *cls, | 198 | client_response_handler (void *cls, |
196 | struct GSF_PendingRequest *pr, | 199 | struct GSF_PendingRequest *pr, |
197 | const void *data, | 200 | const void *data, |
198 | size_t data_len) | 201 | size_t data_len, |
202 | int more) | ||
199 | { | 203 | { |
204 | struct ClientRequest *cr = cls; | ||
205 | |||
206 | if (NULL == data) | ||
207 | { | ||
208 | /* ugh, request 'timed out' -- how can this be? */ | ||
209 | GNUNET_break (0); | ||
210 | GNUNET_assert (GNUNET_NO == more); | ||
211 | return; | ||
212 | } | ||
200 | /* FIXME: adapt old code below to new API! */ | 213 | /* FIXME: adapt old code below to new API! */ |
201 | 214 | ||
202 | GNUNET_STATISTICS_update (stats, | 215 | GNUNET_STATISTICS_update (stats, |