aboutsummaryrefslogtreecommitdiff
path: root/toys/df.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/df.c')
-rw-r--r--toys/df.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/toys/df.c b/toys/df.c
index 375aa0ab..3e8a9725 100644
--- a/toys/df.c
+++ b/toys/df.c
@@ -21,11 +21,12 @@ static void show_mt(struct mtab_list *mt)
// If we have -t, skip other filesystem types
if (toy.df.fstype) {
- struct string_list *sl;
+ struct arg_list *al;
- for (sl = toy.df.fstype; sl; sl = sl->next)
- if (!strcmp(mt->type, sl->str)) break;
- if (!sl) return;
+ for (al = toy.df.fstype; al; al = al->next) {
+ if (!strcmp(mt->type, al->arg)) break;
+ }
+ if (!al) return;
}
// If we don't have -a, skip synthetic filesystems