diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-06-17 17:30:01 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-06-18 00:30:37 +0000 |
commit | 333e915cff0078215492dc01206edbb1d77886e7 (patch) | |
tree | f1dd27ad694a35d38b62da405ee58cebf6077d19 /epan/dfilter | |
parent | 078a53f9942e4092d4d18344fa758ab47be39335 (diff) |
Better name for the routine.
It doesn't necessarily produce an FT_BYTES value any more.
Change-Id: I7bad1e328394a829400bd139c48a9538c4892818
Reviewed-on: https://code.wireshark.org/review/28318
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dfilter')
-rw-r--r-- | epan/dfilter/semcheck.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dfilter/semcheck.c b/epan/dfilter/semcheck.c index 7ced28c563..b548fdc342 100644 --- a/epan/dfilter/semcheck.c +++ b/epan/dfilter/semcheck.c @@ -603,7 +603,7 @@ check_function(dfwork_t *dfw, stnode_t *st_node) /* Convert a character constant to a 1-byte BYTE_STRING containing the * character. */ static fvalue_t * -charconst_to_bytes(dfwork_t *dfw, ftenum_t ftype, char *s, gboolean allow_partial_value) +dfilter_fvalue_from_charconst_string(dfwork_t *dfw, ftenum_t ftype, char *s, gboolean allow_partial_value) { fvalue_t *fvalue; @@ -694,7 +694,7 @@ check_relation_LHS_FIELD(dfwork_t *dfw, const char *relation_string, /* The RHS should be the same type as the LHS, * but a character is just a one-byte byte * string. */ - fvalue = charconst_to_bytes(dfw, ftype1, s, allow_partial_value); + fvalue = dfilter_fvalue_from_charconst_string(dfw, ftype1, s, allow_partial_value); } else fvalue = dfilter_fvalue_from_unparsed(dfw, ftype1, s, allow_partial_value); @@ -1137,7 +1137,7 @@ check_relation_LHS_RANGE(dfwork_t *dfw, const char *relation_string, } else { /* The RHS should be FT_BYTES, but a character is just a * one-byte byte string. */ - fvalue = charconst_to_bytes(dfw, FT_BYTES, s, allow_partial_value); + fvalue = dfilter_fvalue_from_charconst_string(dfw, FT_BYTES, s, allow_partial_value); } if (!fvalue) { DebugLog((" 5 check_relation_LHS_RANGE(type2 = STTYPE_UNPARSED): Could not convert from string!\n")); |