ZOOM_scanset_term prototype was changed from YAZ 3 to YAZ 4: 3rd and 4th
argument changed from int pointer to size_t pointer.
get_assoc(INTERNAL_FUNCTION_PARAM_PASSTHRU, pval_id, &p);
if (p && p->zoom_scan) {
int pos = 0;
get_assoc(INTERNAL_FUNCTION_PARAM_PASSTHRU, pval_id, &p);
if (p && p->zoom_scan) {
int pos = 0;
int size = ZOOM_scanset_size(p->zoom_scan);
for (pos = 0; pos < size; pos++) {
int size = ZOOM_scanset_size(p->zoom_scan);
for (pos = 0; pos < size; pos++) {