diff options
author | João Valverde <j@v6e.pt> | 2021-11-08 12:20:40 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2021-11-10 03:18:50 +0000 |
commit | e7ecc9b9e58398c202541ad12a0245235b0ae55b (patch) | |
tree | 1e9f34aaf2d0b31bb0f66e29b24dfe02f2de695a /epan/dfilter/sttype-string.c | |
parent | 63adcf7fb5bfa04555bce7a31833494466b04252 (diff) |
dfilter: Clean up error format and exception code
Misc code cleanups. Add some extra stnode functions for increased type
safety. Fix a constness issue with df_lval_value().
Diffstat (limited to 'epan/dfilter/sttype-string.c')
-rw-r--r-- | epan/dfilter/sttype-string.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/epan/dfilter/sttype-string.c b/epan/dfilter/sttype-string.c index 794787432d..dc99ad143e 100644 --- a/epan/dfilter/sttype-string.c +++ b/epan/dfilter/sttype-string.c @@ -10,12 +10,6 @@ #include "syntax-tree.h" static gpointer -string_new(gpointer string) -{ - return g_strdup(string); -} - -static gpointer string_dup(gconstpointer string) { return g_strdup(string); @@ -48,7 +42,7 @@ sttype_register_string(void) static sttype_t string_type = { STTYPE_STRING, "STRING", - string_new, + NULL, string_free, string_dup, string_tostr @@ -57,7 +51,7 @@ sttype_register_string(void) static sttype_t unparsed_type = { STTYPE_UNPARSED, "UNPARSED", - string_new, + NULL, string_free, string_dup, unparsed_tostr |