5 static void display_node (const struct TreeNode *tn, int depth)
8 const struct TreeNode *s;
11 for (i = 0; i < depth; i++)
18 for (s = tn->sub; s->name != NULL; s++)
19 display_node(s, depth + 1);
23 int do_tree (int argc, const char **argv UNUSED, struct ngadmin *nga UNUSED)
26 printf("this command takes no argument\n");
30 display_node(&commands, 0);