MINOR: samples: rename a struct from sample_storage to sample_data
This a first step of sample reorganization.
diff --git a/include/types/pattern.h b/include/types/pattern.h
index 54af8fb..86d4bc8 100644
--- a/include/types/pattern.h
+++ b/include/types/pattern.h
@@ -129,7 +129,7 @@
* "sample" with a tree entry. It is used with maps.
*/
struct pattern_tree {
- struct sample_storage *smp;
+ struct sample_data *smp;
struct pat_ref_elt *ref;
struct ebmb_node node;
};
@@ -168,7 +168,7 @@
} ptr; /* indirect values, allocated */
int len; /* data length when required */
int sflags; /* flags relative to the storage method. */
- struct sample_storage *smp; /* used to store a pointer to sample value associated
+ struct sample_data *smp; /* used to store a pointer to sample value associated
with the match. It is used with maps */
struct pat_ref_elt *ref;
};
@@ -212,7 +212,7 @@
/* This struct contain a list of pattern expr */
struct pattern_head {
int (*parse)(const char *text, struct pattern *pattern, int flags, char **err);
- int (*parse_smp)(const char *text, struct sample_storage *smp);
+ int (*parse_smp)(const char *text, struct sample_data *smp);
int (*index)(struct pattern_expr *, struct pattern *, char **);
void (*delete)(struct pattern_expr *, struct pat_ref_elt *);
void (*prune)(struct pattern_expr *);
diff --git a/include/types/sample.h b/include/types/sample.h
index a7db5c0..f34cf17 100644
--- a/include/types/sample.h
+++ b/include/types/sample.h
@@ -269,7 +269,7 @@
};
/* Used to store sample constant */
-struct sample_storage {
+struct sample_data {
int type; /* SMP_T_* */
union {
long long int sint; /* used for signed 64bits integers */
diff --git a/include/types/vars.h b/include/types/vars.h
index c387a77..14cb33d 100644
--- a/include/types/vars.h
+++ b/include/types/vars.h
@@ -27,7 +27,7 @@
struct var {
struct list l; /* Used for chaining vars. */
const char *name; /* Contains the variable name. */
- struct sample_storage data; /* data storage. */
+ struct sample_data data; /* data storage. */
};
#endif