diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-07-25 18:01:20 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-07-25 18:01:20 +0000 |
commit | b040d4f3da1545225b9a58301deb29acee6aa7f3 (patch) | |
tree | f029b6d39fc4619a8369094efd4c558b10f3d927 /util-linux/fsck_minix.c | |
parent | b9ea02c04b91773e6e5a116313b360f3499a2d4e (diff) | |
download | busybox-w32-b040d4f3da1545225b9a58301deb29acee6aa7f3.tar.gz busybox-w32-b040d4f3da1545225b9a58301deb29acee6aa7f3.tar.bz2 busybox-w32-b040d4f3da1545225b9a58301deb29acee6aa7f3.zip |
Use BB_FEATURE_CLEAN_UP where appropriate
-Erik
Diffstat (limited to 'util-linux/fsck_minix.c')
-rw-r--r-- | util-linux/fsck_minix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index c3c493fd2..f980fe9ea 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c | |||
@@ -1319,7 +1319,7 @@ static void alloc_name_list(void) | |||
1319 | name_list[i] = xmalloc(sizeof(char) * BUFSIZ + 1); | 1319 | name_list[i] = xmalloc(sizeof(char) * BUFSIZ + 1); |
1320 | } | 1320 | } |
1321 | 1321 | ||
1322 | #if 0 | 1322 | #ifdef BB_FEATURE_CLEAN_UP |
1323 | /* execute this atexit() to deallocate name_list[] */ | 1323 | /* execute this atexit() to deallocate name_list[] */ |
1324 | /* piptigger was here */ | 1324 | /* piptigger was here */ |
1325 | static void free_name_list(void) | 1325 | static void free_name_list(void) |
@@ -1344,9 +1344,11 @@ extern int fsck_minix_main(int argc, char **argv) | |||
1344 | int retcode = 0; | 1344 | int retcode = 0; |
1345 | 1345 | ||
1346 | alloc_name_list(); | 1346 | alloc_name_list(); |
1347 | #ifdef BB_FEATURE_CLEAN_UP | ||
1347 | /* Don't bother to free memory. Exit does | 1348 | /* Don't bother to free memory. Exit does |
1348 | * that automagically, so we can save a few bytes */ | 1349 | * that automagically, so we can save a few bytes */ |
1349 | //atexit(free_name_list); | 1350 | atexit(free_name_list); |
1351 | #endif | ||
1350 | 1352 | ||
1351 | if (INODE_SIZE * MINIX_INODES_PER_BLOCK != BLOCK_SIZE) | 1353 | if (INODE_SIZE * MINIX_INODES_PER_BLOCK != BLOCK_SIZE) |
1352 | die("bad inode size"); | 1354 | die("bad inode size"); |