aboutsummaryrefslogtreecommitdiff
path: root/mkfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-14 01:41:38 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-14 04:10:45 +0200
commitf57814332a69bebc40e25e6537a3c08fc9e18f97 (patch)
tree7ff880b8eb53f4852c6f0be9436f220643219795 /mkfs
parentd455ff92da0249e731cff7613f42b0f7359775da (diff)
Move data deduplication from fstree code to data writer
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs')
-rw-r--r--mkfs/mkfs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index fda9831..0c4e9a5 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -36,10 +36,7 @@ static int pack_files(data_writer_t *data, fstree_t *fs, options_t *opt)
if (set_working_dir(opt))
return -1;
- while (fs->files != NULL) {
- fi = fs->files;
- fs->files = fi->next;
-
+ for (fi = fs->files; fi != NULL; fi = fi->next) {
if (!opt->quiet)
printf("packing %s\n", fi->input_file);