diff options
Diffstat (limited to 'e2fsprogs')
-rw-r--r-- | e2fsprogs/e2fs_lib.c | 27 | ||||
-rw-r--r-- | e2fsprogs/e2fs_lib.h | 5 |
2 files changed, 0 insertions, 32 deletions
diff --git a/e2fsprogs/e2fs_lib.c b/e2fsprogs/e2fs_lib.c index e32336a..9b68d89 100644 --- a/e2fsprogs/e2fs_lib.c +++ b/e2fsprogs/e2fs_lib.c @@ -8,33 +8,6 @@ #include "libbb.h" #include "e2fs_lib.h" -#if INT_MAX == LONG_MAX -#define IF_LONG_IS_SAME(...) __VA_ARGS__ -#define IF_LONG_IS_WIDER(...) -#else -#define IF_LONG_IS_SAME(...) -#define IF_LONG_IS_WIDER(...) __VA_ARGS__ -#endif - -/* Iterate a function on each entry of a directory */ -int iterate_on_dir(const char *dir_name, - int FAST_FUNC (*func)(const char *, struct dirent *, void *), - void *private) -{ - DIR *dir; - struct dirent *de; - - dir = opendir(dir_name); - if (dir == NULL) { - return -1; - } - while ((de = readdir(dir)) != NULL) { - func(dir_name, de, private); - } - closedir(dir); - return 0; -} - /* Print file attributes on an ext2 file system */ const uint32_t e2attr_flags_value[] ALIGN4 = { #ifdef ENABLE_COMPRESSION diff --git a/e2fsprogs/e2fs_lib.h b/e2fsprogs/e2fs_lib.h index 879272f..bab447a 100644 --- a/e2fsprogs/e2fs_lib.h +++ b/e2fsprogs/e2fs_lib.h @@ -11,11 +11,6 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN -/* Iterate a function on each entry of a directory */ -int iterate_on_dir(const char *dir_name, - int FAST_FUNC (*func)(const char *, struct dirent *, void *), - void *private); - /* Print file attributes on an ext2 file system */ void print_e2flags_long(unsigned flags); void print_e2flags(unsigned flags); |