diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-02-07 05:29:42 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-02-07 05:29:42 +0000 |
commit | fac10d7c59f7db0facd5fb94de273310b9ec86e6 (patch) | |
tree | dccf8f905fc5807239883da9fca6597037d487fc /swaponoff.c | |
parent | 50bc101b7d6e847a9a0621ca3eb28c7117d095e5 (diff) | |
download | busybox-w32-fac10d7c59f7db0facd5fb94de273310b9ec86e6.tar.gz busybox-w32-fac10d7c59f7db0facd5fb94de273310b9ec86e6.tar.bz2 busybox-w32-fac10d7c59f7db0facd5fb94de273310b9ec86e6.zip |
A few minor updates. ;-)
Seriously though, read the Changelog for busybox 0.42,
which this is about to become...
-Erik
Diffstat (limited to 'swaponoff.c')
-rw-r--r-- | swaponoff.c | 5 |
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 | |||
65 | do_em_all() | 65 | do_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); |