svn commit: trunk/busybox/e2fsprogs

aldot at busybox.net aldot at busybox.net
Thu Mar 30 13:54:31 UTC 2006


Author: aldot
Date: 2006-03-30 05:54:30 -0800 (Thu, 30 Mar 2006)
New Revision: 14706

Log:
- rename clean_up in tune2fs and mke2fs to be prefixed with their applet names.
  Purely cosmetic to ease readability.


Modified:
   trunk/busybox/e2fsprogs/mke2fs.c
   trunk/busybox/e2fsprogs/tune2fs.c


Changeset:
Modified: trunk/busybox/e2fsprogs/mke2fs.c
===================================================================
--- trunk/busybox/e2fsprogs/mke2fs.c	2006-03-30 13:38:19 UTC (rev 14705)
+++ trunk/busybox/e2fsprogs/mke2fs.c	2006-03-30 13:54:30 UTC (rev 14706)
@@ -1199,7 +1199,7 @@
 	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 @@
 	io_manager	io_ptr;
 
 	if (ENABLE_FEATURE_CLEAN_UP)
-		atexit(clean_up);
+		atexit(mke2fs_clean_up);
 	if(!PRS(argc, argv))
 		return 0;
 

Modified: trunk/busybox/e2fsprogs/tune2fs.c
===================================================================
--- trunk/busybox/e2fsprogs/tune2fs.c	2006-03-30 13:38:19 UTC (rev 14705)
+++ trunk/busybox/e2fsprogs/tune2fs.c	2006-03-30 13:54:30 UTC (rev 14706)
@@ -579,7 +579,7 @@
 #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 @@
 	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 */




More information about the busybox-cvs mailing list