]> git.sur5r.net Git - ngadmin/blobdiff - cli/com_login.c
CLI: added the possibility to interrupt hanging commands with CTRL+C.
[ngadmin] / cli / com_login.c
index e50e096c7ed7ac5e8040fe841f6f8a126157232e..dfd0a92611847e01875f21fbe7007431eb5eb155 100644 (file)
@@ -1,10 +1,9 @@
 
-#include "common.h"
+#include "commands.h"
 
 
 
-
-static bool do_login (const struct TreeNode *tn UNUSED, int nb, const char **com, struct ngadmin *nga) {
+bool do_login (int nb, const char **com, struct ngadmin *nga) {
  
  int i;
  
@@ -25,8 +24,3 @@ static bool do_login (const struct TreeNode *tn UNUSED, int nb, const char **com
 }
 
 
-
-const struct TreeNode com_login=COM("login", do_login, true, NULL);
-
-
-