]> git.sur5r.net Git - ngadmin/blobdiff - cli/com_help.c
Cli: refactor, change coding style
[ngadmin] / cli / com_help.c
index 5bf84ee76350eb4f93cf8bf6b4b011d1ac15cb74..e1bad0e5289f8f6e71097ee46cdcba5df3e51510 100644 (file)
@@ -2,25 +2,17 @@
 #include "commands.h"
 
 
-
-
-bool do_help (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga UNUSED) {
- const struct TreeNode *s;
- printf("Available commands: \n");
- for (s=coms.sub; s->name!=NULL; ++s) {
-  printf("%s ", s->name);
- }
- putchar('\n');
- return true;
+bool do_help (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga UNUSED)
+{
+       const struct TreeNode *s;
+       
+       printf("Available commands: \n");
+       
+       for (s = coms.sub; s->name != NULL; s++)
+               printf("%s ", s->name);
+       putchar('\n');
+       
+       return true;
 }
 
 
-
-