From 7d01bbb78c11cb54c96cf9708916a116190364cb Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 14 May 2023 03:37:36 +0200 Subject: libio: Move skip function into dir_iterator_t base interface For regular iterator types, it's a no-op, for the tree iterator, it skips the sub tree. Signed-off-by: David Oberhollenzer --- bin/gensquashfs/src/fstree_from_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/gensquashfs/src') diff --git a/bin/gensquashfs/src/fstree_from_dir.c b/bin/gensquashfs/src/fstree_from_dir.c index 6709368..6c37ee8 100644 --- a/bin/gensquashfs/src/fstree_from_dir.c +++ b/bin/gensquashfs/src/fstree_from_dir.c @@ -41,7 +41,7 @@ int fstree_from_dir(fstree_t *fs, dir_iterator_t *dir) false, true); if (n == NULL) { if (S_ISDIR(ent->mode)) - dir_tree_iterator_skip(dir); + dir->ignore_subdir(dir); free(ent); continue; } -- cgit v1.2.3