aboutsummaryrefslogtreecommitdiff
path: root/util-linux/umount.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-25 18:01:20 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-25 18:01:20 +0000
commit51cbe780f32bb4d1bb2740f63c111e05fb0d7ee0 (patch)
treef029b6d39fc4619a8369094efd4c558b10f3d927 /util-linux/umount.c
parenta02c5081ae9e7105a2c36d31aadcd039b595e1c6 (diff)
downloadbusybox-w32-51cbe780f32bb4d1bb2740f63c111e05fb0d7ee0.tar.gz
busybox-w32-51cbe780f32bb4d1bb2740f63c111e05fb0d7ee0.tar.bz2
busybox-w32-51cbe780f32bb4d1bb2740f63c111e05fb0d7ee0.zip
Use BB_FEATURE_CLEAN_UP where appropriate
-Erik git-svn-id: svn://busybox.net/trunk/busybox@904 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r--util-linux/umount.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c
index df075f7d9..6a5e4cad8 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -142,7 +142,7 @@ char *mtab_next(void **iter)
142 142
143/* Don't bother to clean up, since exit() does that 143/* Don't bother to clean up, since exit() does that
144 * automagically, so we can save a few bytes */ 144 * automagically, so we can save a few bytes */
145#if 0 145#ifdef BB_FEATURE_CLEAN_UP
146void mtab_free(void) 146void mtab_free(void)
147{ 147{
148 struct _mtab_entry_t *this, *next; 148 struct _mtab_entry_t *this, *next;
@@ -235,6 +235,9 @@ extern int umount_main(int argc, char **argv)
235 if (argc < 2) { 235 if (argc < 2) {
236 usage(umount_usage); 236 usage(umount_usage);
237 } 237 }
238#ifdef BB_FEATURE_CLEAN_UP
239 atexit(mtab_free);
240#endif
238 241
239 /* Parse any options */ 242 /* Parse any options */
240 while (--argc > 0 && **(++argv) == '-') { 243 while (--argc > 0 && **(++argv) == '-') {