5 int do_defaults (int argc, const char **argv UNUSED, struct ngadmin *nga)
8 const struct swi_attr *sa;
13 printf("this command takes no argument\n");
18 sa = ngadmin_getCurrentSwitch(nga);
20 printf("must be logged\n");
25 printf("The switch settings will be CLEARED. Continue ? [y/N]: ");
28 if (fgets(line, sizeof(line), stdin) != NULL && strcasecmp(line, "y\n") == 0) {
29 i = ngadmin_defaults(nga);