summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-03-30 13:54:30 +0000
committerBernhard Reutner-Fischer2006-03-30 13:54:30 +0000
commit1f6dc6d35803dd1cf28653a0b521a26084ef3d43 (patch)
tree0b2ad7ef39da556b10a5772bde7fdb37a22938cd
parent214744dba19a593cf7b76a2623be520272f06a71 (diff)
downloadbusybox-1f6dc6d35803dd1cf28653a0b521a26084ef3d43.zip
busybox-1f6dc6d35803dd1cf28653a0b521a26084ef3d43.tar.gz
- rename clean_up in tune2fs and mke2fs to be prefixed with their applet names.
Purely cosmetic to ease readability.
-rw-r--r--e2fsprogs/mke2fs.c4
-rw-r--r--e2fsprogs/tune2fs.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/e2fsprogs/mke2fs.c b/e2fsprogs/mke2fs.c
index e6a1392..787f28e 100644
--- a/e2fsprogs/mke2fs.c
+++ b/e2fsprogs/mke2fs.c
@@ -1199,7 +1199,7 @@ BLOCKSIZE_ERROR:
return 1;
}
-static void clean_up(void)
+static void mke2fs_clean_up(void)
{
if (ENABLE_FEATURE_CLEAN_UP && journal_device) free(journal_device);
}
@@ -1214,7 +1214,7 @@ int mke2fs_main (int argc, char *argv[])
io_manager io_ptr;
if (ENABLE_FEATURE_CLEAN_UP)
- atexit(clean_up);
+ atexit(mke2fs_clean_up);
if(!PRS(argc, argv))
return 0;
diff --git a/e2fsprogs/tune2fs.c b/e2fsprogs/tune2fs.c
index f228c56..2bd9a65 100644
--- a/e2fsprogs/tune2fs.c
+++ b/e2fsprogs/tune2fs.c
@@ -579,7 +579,7 @@ static ATTRIBUTE_NORETURN void do_findfs(int argc, char **argv)
#define do_findfs(x, y)
#endif
-static void clean_up(void)
+static void tune2fs_clean_up(void)
{
if (ENABLE_FEATURE_CLEAN_UP && device_name) free(device_name);
if (ENABLE_FEATURE_CLEAN_UP && journal_device) free(journal_device);
@@ -593,7 +593,7 @@ int tune2fs_main(int argc, char **argv)
io_manager io_ptr;
if (ENABLE_FEATURE_CLEAN_UP)
- atexit(clean_up);
+ atexit(tune2fs_clean_up);
if (ENABLE_FINDFS && (bb_applet_name[0] == 'f')) /* findfs */
do_findfs(argc, argv); /* no return */