uint32_t _tmp2; \
char *_tmp; \
_tmp2 = strtoul(s, &_tmp, 0); \
- if (_tmp) \
+ if (*_tmp != '\0') \
return -1; \
if (size == 2) { \
if (_tmp2 >= (1 << 16)) \
long int i;
char *end = NULL;
+ if (c < 'a' || c > ('a' + STP_NUMOPS - 1))
+ return 0;
flag = 1 << (c - 'a');
check_option(flags, flag);
if (check_inverse(optarg))
print_error("Bad STP config sender address");
break;
default:
- print_error("This shouldn't happen");
+ print_error("stp match: this shouldn't happen");
}
return 1;
}