aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-11-08 15:04:39 +0000
committerChristian Grothoff <christian@grothoff.org>2010-11-08 15:04:39 +0000
commitfad1b9dccb78ae91705d20009a4cd1dc6d56a6f1 (patch)
tree70e16415d603598a4430b36b96f88e2c8bb95647 /src/fs
parentff51c615d9f43e5680b68457da1c1b08fb73f904 (diff)
downloadgnunet-fad1b9dccb78ae91705d20009a4cd1dc6d56a6f1.tar.gz
gnunet-fad1b9dccb78ae91705d20009a4cd1dc6d56a6f1.zip
seaspidery
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/fs_download.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c
index 617e28103..9e2cc7127 100644
--- a/src/fs/fs_download.c
+++ b/src/fs/fs_download.c
@@ -821,6 +821,8 @@ check_completed (struct GNUNET_FS_DownloadContext *dc)
821} 821}
822 822
823 823
824#define GNUNET_FS_URI_CHK_PREFIX GNUNET_FS_URI_PREFIX GNUNET_FS_URI_CHK_INFIX
825
824/** 826/**
825 * We found an entry in a directory. Check if the respective child 827 * We found an entry in a directory. Check if the respective child
826 * already exists and if not create the respective child download. 828 * already exists and if not create the respective child download.
@@ -874,8 +876,7 @@ trigger_recursive_download (void *cls,
874 if (fn == NULL) 876 if (fn == NULL)
875 { 877 {
876 us = GNUNET_FS_uri_to_string (uri); 878 us = GNUNET_FS_uri_to_string (uri);
877 fn = GNUNET_strdup (&us [strlen (GNUNET_FS_URI_PREFIX 879 fn = GNUNET_strdup (&us [strlen (GNUNET_FS_URI_CHK_PREFIX)]);
878 GNUNET_FS_URI_CHK_INFIX)]);
879 GNUNET_free (us); 880 GNUNET_free (us);
880 } 881 }
881 else if (fn[0] == '.') 882 else if (fn[0] == '.')
@@ -884,8 +885,7 @@ trigger_recursive_download (void *cls,
884 us = GNUNET_FS_uri_to_string (uri); 885 us = GNUNET_FS_uri_to_string (uri);
885 GNUNET_asprintf (&fn, 886 GNUNET_asprintf (&fn,
886 "%s%s", 887 "%s%s",
887 &us[strlen (GNUNET_FS_URI_PREFIX 888 &us[strlen (GNUNET_FS_URI_CHK_PREFIX)], ext);
888 GNUNET_FS_URI_CHK_INFIX)], ext);
889 GNUNET_free (ext); 889 GNUNET_free (ext);
890 GNUNET_free (us); 890 GNUNET_free (us);
891 } 891 }