6 bool do_defaults (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga) {
9 const struct swi_attr *sa;
13 if ( (sa=ngadmin_getCurrentSwitch(nga))==NULL ) {
14 printf("must be logged\n");
20 printf("The switch settings will be CLEARED. Continue ? [y/N]: ");
23 if ( fgets(line, sizeof(line), stdin)!=NULL && strcasecmp(line, "y\n")==0 ) {
24 i=ngadmin_defaults(nga);