diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-04-28 00:18:56 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-04-28 00:18:56 +0000 |
commit | 4f3f757d56fbf420ea5030dcf7ea971b3da3ab47 (patch) | |
tree | d986e9bb9f03bf1f83465c274c35c0d58ed544e4 /util-linux/fsck_minix.c | |
parent | 227a59b05d6df9b4be5990915646249d6f548822 (diff) | |
download | busybox-w32-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.tar.gz busybox-w32-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.tar.bz2 busybox-w32-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.zip |
Latest and greatest. Some effort at libc5 (aiming towards newlib)
compatability.
-Erik
Diffstat (limited to 'util-linux/fsck_minix.c')
-rw-r--r-- | util-linux/fsck_minix.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index aa0a82432..c890dff7d 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c | |||
@@ -97,7 +97,6 @@ | |||
97 | #include <termios.h> | 97 | #include <termios.h> |
98 | #include <mntent.h> | 98 | #include <mntent.h> |
99 | #include <sys/stat.h> | 99 | #include <sys/stat.h> |
100 | #include <sys/param.h> /* for PATH_MAX */ | ||
101 | 100 | ||
102 | #include <linux/fs.h> | 101 | #include <linux/fs.h> |
103 | #include <linux/minix_fs.h> | 102 | #include <linux/minix_fs.h> |
@@ -145,7 +144,7 @@ static int termios_set = 0; | |||
145 | /* File-name data */ | 144 | /* File-name data */ |
146 | #define MAX_DEPTH 32 | 145 | #define MAX_DEPTH 32 |
147 | static int name_depth = 0; | 146 | static int name_depth = 0; |
148 | // static char name_list[MAX_DEPTH][PATH_MAX + 1]; | 147 | // static char name_list[MAX_DEPTH][BUFSIZ + 1]; |
149 | static char **name_list = NULL; | 148 | static char **name_list = NULL; |
150 | 149 | ||
151 | static char *inode_buffer = NULL; | 150 | static char *inode_buffer = NULL; |
@@ -178,8 +177,8 @@ static unsigned char *zone_count = NULL; | |||
178 | static void recursive_check(unsigned int ino); | 177 | static void recursive_check(unsigned int ino); |
179 | static void recursive_check2(unsigned int ino); | 178 | static void recursive_check2(unsigned int ino); |
180 | 179 | ||
181 | #define inode_in_use(x) (bit(inode_map,(x))) | 180 | #define inode_in_use(x) (isset(inode_map,(x))) |
182 | #define zone_in_use(x) (bit(zone_map,(x)-FIRSTZONE+1)) | 181 | #define zone_in_use(x) (isset(zone_map,(x)-FIRSTZONE+1)) |
183 | 182 | ||
184 | #define mark_inode(x) (setbit(inode_map,(x)),changed=1) | 183 | #define mark_inode(x) (setbit(inode_map,(x)),changed=1) |
185 | #define unmark_inode(x) (clrbit(inode_map,(x)),changed=1) | 184 | #define unmark_inode(x) (clrbit(inode_map,(x)),changed=1) |
@@ -1239,7 +1238,7 @@ static void alloc_name_list(void) | |||
1239 | 1238 | ||
1240 | name_list = xmalloc(sizeof(char *) * MAX_DEPTH); | 1239 | name_list = xmalloc(sizeof(char *) * MAX_DEPTH); |
1241 | for (i = 0; i < MAX_DEPTH; i++) | 1240 | for (i = 0; i < MAX_DEPTH; i++) |
1242 | name_list[i] = xmalloc(sizeof(char) * PATH_MAX + 1); | 1241 | name_list[i] = xmalloc(sizeof(char) * BUFSIZ + 1); |
1243 | } | 1242 | } |
1244 | 1243 | ||
1245 | #if 0 | 1244 | #if 0 |