Make parameter generation also depend on the scripts that run. Address some review comments.

This commit is contained in:
Stephan Brown
2017-01-06 09:58:58 +01:00
committed by Beat Küng
parent 92b2395ff6
commit 67a484ac34
4 changed files with 5 additions and 10 deletions
+2 -2
View File
@@ -263,7 +263,7 @@ param_find_internal(const char *name, bool notification)
{
param_t middle;
param_t front = 0;
param_t last = get_param_info_count() - 1;
param_t last = get_param_info_count();
/* perform a binary search of the known parameters */
@@ -278,7 +278,7 @@ param_find_internal(const char *name, bool notification)
return middle;
} else if (middle == front || middle == last) {
} else if (middle == front) {
/* An end point has been hit, but there has been no match */
break;
+1 -1
View File
@@ -351,7 +351,7 @@ do_find(const char *name)
return 1;
}
printf("Found param %s at index %lu\n", name, ret);
printf("Found param %s at index %"PRIxPTR"\n", name, ret);
return 0;
}