summaryrefslogtreecommitdiff
path: root/e2fsprogs/fsck.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-21 13:23:14 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-21 13:23:14 +0000
commitbf66fbc8e2380717c1fab860cfc60c78582839dd (patch)
tree3ab3dd4df901851ff7f4345708592118766ba4aa /e2fsprogs/fsck.c
parent6910741067913d131d931b1e6424d3b8ed43e64f (diff)
downloadbusybox-w32-bf66fbc8e2380717c1fab860cfc60c78582839dd.tar.gz
busybox-w32-bf66fbc8e2380717c1fab860cfc60c78582839dd.tar.bz2
busybox-w32-bf66fbc8e2380717c1fab860cfc60c78582839dd.zip
introduce LONE_CHAR (optimized strcmp with one-char string)
Diffstat (limited to 'e2fsprogs/fsck.c')
-rw-r--r--e2fsprogs/fsck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c
index 3b01c1021..da66250f1 100644
--- a/e2fsprogs/fsck.c
+++ b/e2fsprogs/fsck.c
@@ -1080,7 +1080,7 @@ static int check_all(void)
1080 */ 1080 */
1081 if (!parallel_root) { 1081 if (!parallel_root) {
1082 for (fs = filesys_info; fs; fs = fs->next) { 1082 for (fs = filesys_info; fs; fs = fs->next) {
1083 if (!strcmp(fs->mountpt, "/")) 1083 if (LONE_CHAR(fs->mountpt, '/'))
1084 break; 1084 break;
1085 } 1085 }
1086 if (fs) { 1086 if (fs) {
@@ -1099,7 +1099,7 @@ static int check_all(void)
1099 */ 1099 */
1100 if (skip_root) 1100 if (skip_root)
1101 for (fs = filesys_info; fs; fs = fs->next) 1101 for (fs = filesys_info; fs; fs = fs->next)
1102 if (!strcmp(fs->mountpt, "/")) 1102 if (LONE_CHAR(fs->mountpt, '/'))
1103 fs->flags |= FLAG_DONE; 1103 fs->flags |= FLAG_DONE;
1104 1104
1105 while (not_done_yet) { 1105 while (not_done_yet) {