diff options
author | João Valverde <j@v6e.pt> | 2021-11-27 17:57:46 +0000 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-11-28 12:32:51 +0000 |
commit | ef8125e3aea8a7a364ffd1c154809a10f2f399f5 (patch) | |
tree | 9b684e559f96cafce8938d1f1819ed2db1d51441 /epan/dissectors/packet-k12.c | |
parent | ede0bc5d61a0aadb426f1be605f493d58a68f990 (diff) |
Move two functions from epan to wsutil/str_util
Move epan_memmem() and epan_strcasestr() to wsutil/str_util.
Rename to ws_memmem() and ws_strcasestr(). Add compile time
check for a system implementation and use that if available.
We invoke those functions using a wrapper to avoid exposing
_GNU_SOURCE outside of the implementation.
Diffstat (limited to 'epan/dissectors/packet-k12.c')
-rw-r--r-- | epan/dissectors/packet-k12.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-k12.c b/epan/dissectors/packet-k12.c index 11db9f8088..938cbf28f4 100644 --- a/epan/dissectors/packet-k12.c +++ b/epan/dissectors/packet-k12.c @@ -230,8 +230,8 @@ dissect_k12(tvbuff_t* tvb,packet_info* pinfo,proto_tree* tree, void* data _U_) if (! handles ) { for (i=0 ; i < nk12_handles; i++) { - if ( epan_strcasestr(pinfo->pseudo_header->k12.stack_file, k12_handles[i].match) - || epan_strcasestr(pinfo->pseudo_header->k12.input_name, k12_handles[i].match) ) { + if ( ws_strcasestr(pinfo->pseudo_header->k12.stack_file, k12_handles[i].match) + || ws_strcasestr(pinfo->pseudo_header->k12.input_name, k12_handles[i].match) ) { handles = k12_handles[i].handles; break; } |