Avoid name-clash with select(2)

parent c2fe6295
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "vmod_selector.h" #include "vmod_selector.h"
static unsigned static unsigned
select(VRT_CTX, const struct match_data * const restrict match, select_match(VRT_CTX, const struct match_data * const restrict match,
const char * const restrict obj, VCL_ENUM const restrict selects, const char * const restrict obj, VCL_ENUM const restrict selects,
const char * const restrict method, int fail) const char * const restrict method, int fail)
{ {
...@@ -90,7 +90,7 @@ vmod_set_which(VRT_CTX, struct vmod_selector_set *set, VCL_ENUM selects, ...@@ -90,7 +90,7 @@ vmod_set_which(VRT_CTX, struct vmod_selector_set *set, VCL_ENUM selects,
} }
if (match == NULL || match->n == 0) if (match == NULL || match->n == 0)
return (0); return (0);
return (select(ctx, match, set->vcl_name, selects, "which", 1) + 1); return (select_match(ctx, match, set->vcl_name, selects, "which", 1) + 1);
} }
static unsigned static unsigned
...@@ -121,7 +121,7 @@ get_idx(VRT_CTX, VCL_INT n, const struct vmod_selector_set * const restrict set, ...@@ -121,7 +121,7 @@ get_idx(VRT_CTX, VCL_INT n, const struct vmod_selector_set * const restrict set,
match = get_existing_match_data(ctx, set, method, fail); match = get_existing_match_data(ctx, set, method, fail);
if (match == NULL || match->n == 0) if (match == NULL || match->n == 0)
return (UINT_MAX); return (UINT_MAX);
return (select(ctx, match, set->vcl_name, selects, method, fail)); return (select_match(ctx, match, set->vcl_name, selects, method, fail));
} }
VCL_STRING VCL_STRING
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment