X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=cli%2Fcom_quit.c;h=f27620bb2008b5e0709b39822c54e9b255c76b24;hb=1190a89a1fed1a7a589880fc46952f5732ad77d3;hp=64c7824fe59a1855961dec5054187ec957544933;hpb=47fbfc0635ef174f71047d75c328f8e848e6a02d;p=ngadmin diff --git a/cli/com_quit.c b/cli/com_quit.c index 64c7824..f27620b 100644 --- a/cli/com_quit.c +++ b/cli/com_quit.c @@ -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; }