From a369a2172a180b3833bf40f71c0684c366738b93 Mon Sep 17 00:00:00 2001 From: John Thacker Date: Fri, 24 Dec 2021 20:56:43 -0500 Subject: [PATCH] text2pcap: Explicit case to keep clang happy --- text2pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text2pcap.c b/text2pcap.c index a0122bfd90..592d4ed5a9 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -760,7 +760,7 @@ parse_options(int argc, char *argv[], text_import_info_t * const info, wtap_dump info->ip_src_addr.ipv6 = hdr_ipv6_src_addr; info->ip_dest_addr.ipv6 = hdr_ipv6_dest_addr; } - info->protocol = hdr_ip_proto; + info->protocol = (guint)hdr_ip_proto; if (hdr_sctp) { info->src_port = hdr_sctp_src; info->dst_port = hdr_sctp_dest;