}
-bool do_tree (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga UNUSED)
+int do_tree (int argc, const char **argv UNUSED, struct ngadmin *nga UNUSED)
{
- display_node(&coms, 0);
+ if (argc > 0) {
+ printf("this command takes no argument\n");
+ return 1;
+ }
- return true;
+ display_node(&commands, 0);
+
+ return 0;
}