]> git.sur5r.net Git - ngadmin/blobdiff - cli/com_defaults.c
Add support for port based VLANs
[ngadmin] / cli / com_defaults.c
index a1c7107fc7972063989ad560e7000ec0880c300c..74ecfa5ff2d5eed05aaaf2451888b0bc93a726c1 100644 (file)
@@ -2,17 +2,23 @@
 #include "commands.h"
 
 
-bool do_defaults (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga)
+int do_defaults (int argc, const char **argv UNUSED, struct ngadmin *nga)
 {
-       int i, ret = true;
+       int i, ret = 0;
        const struct swi_attr *sa;
        char line[16];
        
        
+       if (argc > 0) {
+               printf("this command takes no argument\n");
+               ret = 1;
+               goto end;
+       }
+       
        sa = ngadmin_getCurrentSwitch(nga);
        if (sa == NULL) {
                printf("must be logged\n");
-               ret = false;
+               ret = 1;
                goto end;
        }