diff options
Diffstat (limited to 'src/fs/test_fs_directory.c')
-rw-r--r-- | src/fs/test_fs_directory.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fs/test_fs_directory.c b/src/fs/test_fs_directory.c index bdbaf906f..4960b8922 100644 --- a/src/fs/test_fs_directory.c +++ b/src/fs/test_fs_directory.c | |||
@@ -17,15 +17,15 @@ | |||
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | |||
21 | /** | 20 | /** |
22 | * @file fs/test_fs_directory.c | 21 | * @file fs/test_fs_directory.c |
23 | * @brief Test for fs_directory.c | 22 | * @brief Test for fs_directory.c |
24 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
25 | */ | 24 | */ |
26 | |||
27 | #include "platform.h" | 25 | #include "platform.h" |
26 | #if HAVE_EXTRACTOR_H | ||
28 | #include <extractor.h> | 27 | #include <extractor.h> |
28 | #endif | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_fs_service.h" | 30 | #include "gnunet_fs_service.h" |
31 | #include "fs_api.h" | 31 | #include "fs_api.h" |
@@ -99,7 +99,11 @@ testDirectory (unsigned int i) | |||
99 | { | 99 | { |
100 | GNUNET_snprintf (txt, sizeof (txt), "%u -- %u\n", p, q); | 100 | GNUNET_snprintf (txt, sizeof (txt), "%u -- %u\n", p, q); |
101 | GNUNET_CONTAINER_meta_data_insert (mds[p], "<test>", | 101 | GNUNET_CONTAINER_meta_data_insert (mds[p], "<test>", |
102 | #if HAVE_EXTRACTOR_H | ||
102 | q % EXTRACTOR_metatype_get_max (), | 103 | q % EXTRACTOR_metatype_get_max (), |
104 | #else | ||
105 | q % 128, | ||
106 | #endif | ||
103 | EXTRACTOR_METAFORMAT_UTF8, | 107 | EXTRACTOR_METAFORMAT_UTF8, |
104 | "text/plain", txt, strlen (txt) + 1); | 108 | "text/plain", txt, strlen (txt) + 1); |
105 | } | 109 | } |