- for (__o = &options[0]; __o->name; __o++) {
- if (__o->parent && !strcmp(__o->parent, o->name)
- && !__o->parent_seen) {
- __o->parent_seen = 1;
+ for (__o = options + 1; __o->name; __o++)
+ if (__o->parent && !strcmp(__o->parent, o->name))
-static void print_option(struct fio_option *options, struct fio_option *o,
- struct fio_option *org, int level)
+static void print_option(struct fio_option *o, struct fio_option *org,
+ int level)
sprintf(p, "%s", o->name);
printf("%-24s: %s\n", name, o->help);
sprintf(p, "%s", o->name);
printf("%-24s: %s\n", name, o->help);
- print_option(options, find_child(options, org), org, level + 1);
+ print_option(find_child(o, org), org, level + 1);