diff options
Diffstat (limited to 'src/fs/test_fs_directory.c')
-rw-r--r-- | src/fs/test_fs_directory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/test_fs_directory.c b/src/fs/test_fs_directory.c index 96ad29cb4..95225d7c0 100644 --- a/src/fs/test_fs_directory.c +++ b/src/fs/test_fs_directory.c | |||
@@ -79,7 +79,7 @@ testDirectory (unsigned int i) | |||
79 | char txt[128]; | 79 | char txt[128]; |
80 | int ret = 0; | 80 | int ret = 0; |
81 | struct GNUNET_TIME_Absolute start; | 81 | struct GNUNET_TIME_Absolute start; |
82 | char *s; | 82 | const char *s; |
83 | 83 | ||
84 | cls.max = i; | 84 | cls.max = i; |
85 | uris = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri *) * i); | 85 | uris = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri *) * i); |
@@ -130,11 +130,11 @@ testDirectory (unsigned int i) | |||
130 | GNUNET_FS_directory_builder_add (db, uris[p], mds[p], NULL); | 130 | GNUNET_FS_directory_builder_add (db, uris[p], mds[p], NULL); |
131 | GNUNET_FS_directory_builder_finish (db, &dlen, (void **) &data); | 131 | GNUNET_FS_directory_builder_finish (db, &dlen, (void **) &data); |
132 | s = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration | 132 | s = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration |
133 | (start)); | 133 | (start), |
134 | GNUNET_YES); | ||
134 | FPRINTF (stdout, | 135 | FPRINTF (stdout, |
135 | "Creating directory with %u entires and total size %llu took %s\n", | 136 | "Creating directory with %u entires and total size %llu took %s\n", |
136 | i, (unsigned long long) dlen, s); | 137 | i, (unsigned long long) dlen, s); |
137 | GNUNET_free (s); | ||
138 | if (i < 100) | 138 | if (i < 100) |
139 | { | 139 | { |
140 | cls.pos = 0; | 140 | cls.pos = 0; |