]> git.sur5r.net Git - ngadmin/blobdiff - cli/com_tree.c
Fix crash when reading the wrong type of VLAN
[ngadmin] / cli / com_tree.c
index 4b4384b3e56b96b242e5b83f2a52b47056edacc4..b1dadff42d840ca069e64cabda818f955df43d84 100644 (file)
@@ -20,16 +20,16 @@ static void display_node (const struct TreeNode *tn, int depth)
 }
 
 
-bool do_tree (int argc, const char **argv UNUSED, struct ngadmin *nga UNUSED)
+int do_tree (int argc, const char **argv UNUSED, struct ngadmin *nga UNUSED)
 {
        if (argc > 0) {
                printf("this command takes no argument\n");
-               return false;
+               return 1;
        }
        
        display_node(&commands, 0);
        
-       return true;
+       return 0;
 }