aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter/sttype-string.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-10-22 19:06:19 +0100
committerJoão Valverde <j@v6e.pt>2023-10-22 21:50:46 +0000
commit1af4b495f2d1b39b7b9e45c1029b436107308fe9 (patch)
tree5cf71d75a3aece4fd8f8483bbc5d6a527717e5c5 /epan/dfilter/sttype-string.c
parent128472b007aff00be5c7c70da2e08ea0ec06802b (diff)
dfilter: Use better assertions for invalid enums
Remove name static storage and use a switch to map enums to names. This allows mapping names all names, even those that are not instantiated as objects. Rewrite some assertions using ws_error() for detailed error messages.
Diffstat (limited to 'epan/dfilter/sttype-string.c')
-rw-r--r--epan/dfilter/sttype-string.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dfilter/sttype-string.c b/epan/dfilter/sttype-string.c
index 62fe20364f..0627312886 100644
--- a/epan/dfilter/sttype-string.c
+++ b/epan/dfilter/sttype-string.c
@@ -54,7 +54,6 @@ sttype_register_string(void)
{
static sttype_t string_type = {
STTYPE_STRING,
- "STRING",
NULL,
gstring_free,
gstring_dup,
@@ -63,7 +62,6 @@ sttype_register_string(void)
static sttype_t literal_type = {
STTYPE_LITERAL,
- "LITERAL",
NULL,
string_free,
string_dup,