aboutsummaryrefslogtreecommitdiff
path: root/swaponoff.c
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-02-07 05:29:42 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-02-07 05:29:42 +0000
commit74bc01e03e96d5a6a318688d2ee8c620f32ce928 (patch)
treedccf8f905fc5807239883da9fca6597037d487fc /swaponoff.c
parentcac2faf4271a09ae2e37e87cbd7d6ea363667d51 (diff)
downloadbusybox-w32-74bc01e03e96d5a6a318688d2ee8c620f32ce928.tar.gz
busybox-w32-74bc01e03e96d5a6a318688d2ee8c620f32ce928.tar.bz2
busybox-w32-74bc01e03e96d5a6a318688d2ee8c620f32ce928.zip
A few minor updates. ;-)
Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik git-svn-id: svn://busybox.net/trunk/busybox@351 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'swaponoff.c')
-rw-r--r--swaponoff.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/swaponoff.c b/swaponoff.c
index 8eaf9797c..3c02bdd42 100644
--- a/swaponoff.c
+++ b/swaponoff.c
@@ -65,7 +65,6 @@ static void
65do_em_all() 65do_em_all()
66{ 66{
67 struct mntent *m; 67 struct mntent *m;
68 char swapName[NAME_MAX];
69 FILE *f = setmntent ("/etc/fstab", "r"); 68 FILE *f = setmntent ("/etc/fstab", "r");
70 69
71 if (f == NULL) { 70 if (f == NULL) {
@@ -73,8 +72,8 @@ do_em_all()
73 exit( FALSE); 72 exit( FALSE);
74 } 73 }
75 while ((m = getmntent (f)) != NULL) { 74 while ((m = getmntent (f)) != NULL) {
76 if (!strstr (m->mnt_type, "swap")) { 75 if (!strstr (m->mnt_type, MNTTYPE_SWAP)) {
77 swap_enable_disable( swapName); 76 swap_enable_disable( m->mnt_fsname);
78 } 77 }
79 } 78 }
80 endmntent (f); 79 endmntent (f);