diff options
author | Rob Landley <rob@landley.net> | 2006-11-25 13:34:51 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-11-25 13:34:51 -0500 |
commit | 58c6c1be60d96df4b7cb8d77625948b0da297144 (patch) | |
tree | fecf653c1fefbc45e5ad534f4e77866122d8eaa1 /toys/df.c | |
parent | f06af2bef5fe73c4ff50ed177fab244ed9db9182 (diff) | |
download | toybox-58c6c1be60d96df4b7cb8d77625948b0da297144.tar.gz |
More work on option parsing. "df -t tmpfs" actually seems to work now.
Diffstat (limited to 'toys/df.c')
-rw-r--r-- | toys/df.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |