]> git.sur5r.net Git - ngadmin/blobdiff - cli/com_quit.c
Fix crash when reading the wrong type of VLAN
[ngadmin] / cli / com_quit.c
index 64c7824fe59a1855961dec5054187ec957544933..f27620bb2008b5e0709b39822c54e9b255c76b24 100644 (file)
@@ -2,13 +2,16 @@
 #include "commands.h"
 
 
-
-bool do_quit (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga UNUSED) {
- cont=0;
- return true;
+int do_quit (int argc, const char **argv UNUSED, struct ngadmin *nga UNUSED)
+{
+       if (argc > 0) {
+               printf("this command takes no argument\n");
+               return 1;
+       }
+       
+       main_loop_continue = 0;
+       
+       return 0;
 }