diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-02-02 13:15:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-02-02 13:15:00 +0000 |
commit | 0f41f06773f179cb56f719c8a1467e8574c57a38 (patch) | |
tree | 4133626a8c4ef832347a3af1c172a68bcb58b069 /src/fs | |
parent | 7ee6a59d70aa5a83da74c73fae4e144f749332a8 (diff) | |
download | gnunet-0f41f06773f179cb56f719c8a1467e8574c57a38.tar.gz gnunet-0f41f06773f179cb56f719c8a1467e8574c57a38.zip |
fixes
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/fs_publish.c | 13 | ||||
-rw-r--r-- | src/fs/fs_unindex.c | 13 | ||||
-rw-r--r-- | src/fs/gnunet-service-fs_indexing.c | 2 |
3 files changed, 16 insertions, 12 deletions
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c index 02ddb2a0d..cbdb9193b 100644 --- a/src/fs/fs_publish.c +++ b/src/fs/fs_publish.c | |||
@@ -792,12 +792,13 @@ hash_for_index_cb (void *cls, | |||
792 | p->data.file.filename, | 792 | p->data.file.filename, |
793 | slen); | 793 | slen); |
794 | sc->client = client; | 794 | sc->client = client; |
795 | GNUNET_CLIENT_transmit_and_get_response (client, | 795 | GNUNET_break (GNUNET_YES == |
796 | &ism->header, | 796 | GNUNET_CLIENT_transmit_and_get_response (client, |
797 | GNUNET_TIME_UNIT_FOREVER_REL, | 797 | &ism->header, |
798 | GNUNET_YES, | 798 | GNUNET_TIME_UNIT_FOREVER_REL, |
799 | &process_index_start_response, | 799 | GNUNET_YES, |
800 | sc); | 800 | &process_index_start_response, |
801 | sc)); | ||
801 | GNUNET_free (ism); | 802 | GNUNET_free (ism); |
802 | } | 803 | } |
803 | 804 | ||
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c index 243209b0e..7ce8b3f18 100644 --- a/src/fs/fs_unindex.c +++ b/src/fs/fs_unindex.c | |||
@@ -373,12 +373,13 @@ process_hash (void *cls, | |||
373 | req.header.type = htons (GNUNET_MESSAGE_TYPE_FS_UNINDEX); | 373 | req.header.type = htons (GNUNET_MESSAGE_TYPE_FS_UNINDEX); |
374 | req.reserved = 0; | 374 | req.reserved = 0; |
375 | req.file_id = *file_id; | 375 | req.file_id = *file_id; |
376 | GNUNET_CLIENT_transmit_and_get_response (uc->client, | 376 | GNUNET_break (GNUNET_OK == |
377 | &req.header, | 377 | GNUNET_CLIENT_transmit_and_get_response (uc->client, |
378 | GNUNET_CONSTANTS_SERVICE_TIMEOUT, | 378 | &req.header, |
379 | GNUNET_YES, | 379 | GNUNET_CONSTANTS_SERVICE_TIMEOUT, |
380 | &process_fs_response, | 380 | GNUNET_YES, |
381 | uc); | 381 | &process_fs_response, |
382 | uc)); | ||
382 | } | 383 | } |
383 | 384 | ||
384 | 385 | ||
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c index 72203fa7a..de569f7ca 100644 --- a/src/fs/gnunet-service-fs_indexing.c +++ b/src/fs/gnunet-service-fs_indexing.c | |||
@@ -354,6 +354,8 @@ GNUNET_FS_handle_index_start (void *cls, | |||
354 | memcpy (&ii[1], fn, slen); | 354 | memcpy (&ii[1], fn, slen); |
355 | ii->file_id = ism->file_id; | 355 | ii->file_id = ism->file_id; |
356 | ii->tc = GNUNET_SERVER_transmit_context_create (client); | 356 | ii->tc = GNUNET_SERVER_transmit_context_create (client); |
357 | mydev = 0; | ||
358 | myino = 0; | ||
357 | if ( ( (dev != 0) || | 359 | if ( ( (dev != 0) || |
358 | (ino != 0) ) && | 360 | (ino != 0) ) && |
359 | (GNUNET_OK == GNUNET_DISK_file_get_identifiers (fn, | 361 | (GNUNET_OK == GNUNET_DISK_file_get_identifiers (fn, |