return false; \
}
- foreach (filter_params_t *param, filter->params) {
+ foreach (filter_param_t *param, filter->params) {
switch (param->type) {
/* file parameter is:
* [no]lock:weight:filename
case ATK_HARD_THRESHOLD: {
char *next;
data->hard_threshold = strtol(param->value, &next, 10);
- PARSE_CHECK(*next, "invalid threshold value %s", param->value);
+ PARSE_CHECK(!*next, "invalid threshold value %s", param->value);
} break;
/* soft_threshold parameter is an integer.
case ATK_SOFT_THRESHOLD: {
char *next;
data->soft_threshold = strtol(param->value, &next, 10);
- PARSE_CHECK(*next, "invalid threshold value %s", param->value);
+ PARSE_CHECK(!*next, "invalid threshold value %s", param->value);
} break;
default: break;