REORG: use the name "sample" instead of "pattern" to designate extracted data
This is mainly a massive renaming in the code to get it in line with the
calling convention. Next patch will rename a few files to complete this
operation.
diff --git a/src/session.c b/src/session.c
index 9d1c935..8ea2a3c 100644
--- a/src/session.c
+++ b/src/session.c
@@ -3386,7 +3386,7 @@
struct track_ctr_prm *prm,
struct proxy *defpx, char *err, int errlen)
{
- int pattern_type = 0;
+ int sample_type = 0;
char *kw = args[*arg - 1];
/* parse the arguments of "track-sc[12]" before the condition in the
@@ -3396,7 +3396,7 @@
while (args[*arg]) {
if (strcmp(args[*arg], "src") == 0) {
prm->type = STKTABLE_TYPE_IP;
- pattern_type = 1;
+ sample_type = 1;
}
else if (strcmp(args[*arg], "table") == 0) {
if (!args[*arg + 1]) {
@@ -3416,7 +3416,7 @@
(*arg)++;
}
- if (!pattern_type) {
+ if (!sample_type) {
snprintf(err, errlen,
"%s key not specified in %s '%s' (found %s, only 'src' is supported).",
kw, proxy_type_str(curpx), curpx->id, quote_arg(args[*arg]));