aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-11 22:45:57 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-11 22:45:57 +0000
commite695e63169a4d0da7ab2fe77c59ac2ca29e443d1 (patch)
treec6dab890be90cc16258a76b77ec71533af49bcee /src/fs/fs_api.c
parente0bf5085a192fe5e9ba401ea7bc62f304c370c4d (diff)
downloadgnunet-e695e63169a4d0da7ab2fe77c59ac2ca29e443d1.tar.gz
gnunet-e695e63169a4d0da7ab2fe77c59ac2ca29e443d1.zip
-do not clean up reader more than once
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r--src/fs/fs_api.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c
index 91c568554..be351b279 100644
--- a/src/fs/fs_api.c
+++ b/src/fs/fs_api.c
@@ -1391,12 +1391,16 @@ cleanup:
1391 * @return NULL if srch was not found in this subtree 1391 * @return NULL if srch was not found in this subtree
1392 */ 1392 */
1393static struct GNUNET_FS_FileInformation * 1393static struct GNUNET_FS_FileInformation *
1394find_file_position (struct GNUNET_FS_FileInformation *pos, const char *srch) 1394find_file_position (struct GNUNET_FS_FileInformation *pos,
1395 const char *srch)
1395{ 1396{
1396 struct GNUNET_FS_FileInformation *r; 1397 struct GNUNET_FS_FileInformation *r;
1397 1398
1398 while (NULL != pos) 1399 while (NULL != pos)
1399 { 1400 {
1401 fprintf (stderr,
1402 "CMP: %s %s\n",
1403 srch, pos->serialization);
1400 if (0 == strcmp (srch, pos->serialization)) 1404 if (0 == strcmp (srch, pos->serialization))
1401 return pos; 1405 return pos;
1402 if ( (GNUNET_YES == pos->is_directory) && 1406 if ( (GNUNET_YES == pos->is_directory) &&
@@ -1457,7 +1461,7 @@ fip_signal_resume (void *cls, struct GNUNET_FS_FileInformation *fi,
1457 * 1461 *
1458 * @param cls the 'struct GNUNET_FS_Handle*' 1462 * @param cls the 'struct GNUNET_FS_Handle*'
1459 * @param filename complete filename (absolute path) 1463 * @param filename complete filename (absolute path)
1460 * @return GNUNET_OK (continue to iterate) 1464 * @return #GNUNET_OK (continue to iterate)
1461 */ 1465 */
1462static int 1466static int
1463deserialize_publish_file (void *cls, const char *filename) 1467deserialize_publish_file (void *cls, const char *filename)