-#include "common.h"
-
-
-
-
-static bool do_quit (const struct TreeNode *tn UNUSED, int nb UNUSED, const char **com UNUSED, struct ngadmin *nga UNUSED) {
-
- cont=0;
-
- return true;
-
+#include "commands.h"
+
+
+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;
}
-
-const struct TreeNode com_quit=COM("quit", do_quit, false, NULL);
-
-
-