- rename clean_up in tune2fs and mke2fs to be prefixed with their applet names.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 30 Mar 2006 13:54:30 +0000 (13:54 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 30 Mar 2006 13:54:30 +0000 (13:54 -0000)
  Purely cosmetic to ease readability.

e2fsprogs/mke2fs.c
e2fsprogs/tune2fs.c

index e6a1392c9fad373340ef3acafe171382c57a58c3..787f28ebfd115ddb5aa63282e1517aaa318d0382 100644 (file)
@@ -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;
 
index f228c56aa692d5fb47b6cd1083c8388f932f692d..2bd9a65ae092a2ff86ef4a9669721e700810df96 100644 (file)
@@ -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 */