diff options
Diffstat (limited to 'e2fsprogs/e2fs_lib.c')
-rw-r--r-- | e2fsprogs/e2fs_lib.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/e2fsprogs/e2fs_lib.c b/e2fsprogs/e2fs_lib.c index e32336ae6..9b68d8901 100644 --- a/e2fsprogs/e2fs_lib.c +++ b/e2fsprogs/e2fs_lib.c | |||
@@ -8,33 +8,6 @@ | |||
8 | #include "libbb.h" | 8 | #include "libbb.h" |
9 | #include "e2fs_lib.h" | 9 | #include "e2fs_lib.h" |
10 | 10 | ||
11 | #if INT_MAX == LONG_MAX | ||
12 | #define IF_LONG_IS_SAME(...) __VA_ARGS__ | ||
13 | #define IF_LONG_IS_WIDER(...) | ||
14 | #else | ||
15 | #define IF_LONG_IS_SAME(...) | ||
16 | #define IF_LONG_IS_WIDER(...) __VA_ARGS__ | ||
17 | #endif | ||
18 | |||
19 | /* Iterate a function on each entry of a directory */ | ||
20 | int iterate_on_dir(const char *dir_name, | ||
21 | int FAST_FUNC (*func)(const char *, struct dirent *, void *), | ||
22 | void *private) | ||
23 | { | ||
24 | DIR *dir; | ||
25 | struct dirent *de; | ||
26 | |||
27 | dir = opendir(dir_name); | ||
28 | if (dir == NULL) { | ||
29 | return -1; | ||
30 | } | ||
31 | while ((de = readdir(dir)) != NULL) { | ||
32 | func(dir_name, de, private); | ||
33 | } | ||
34 | closedir(dir); | ||
35 | return 0; | ||
36 | } | ||
37 | |||
38 | /* Print file attributes on an ext2 file system */ | 11 | /* Print file attributes on an ext2 file system */ |
39 | const uint32_t e2attr_flags_value[] ALIGN4 = { | 12 | const uint32_t e2attr_flags_value[] ALIGN4 = { |
40 | #ifdef ENABLE_COMPRESSION | 13 | #ifdef ENABLE_COMPRESSION |