diff options
author | Anders Broman <anders.broman@ericsson.com> | 2020-07-14 10:56:02 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2020-07-14 11:02:04 +0000 |
commit | cc039149a8b206064c45e051c241f8e498b24a43 (patch) | |
tree | a87817070b4f0cd63931155a862f764fef2742cd /epan/dissectors/packet-dhcp.c | |
parent | c5aa5b8f41194d09639d416cd03839ea7b1d5c2f (diff) |
DNS: Try to fix Wpointer-sign warnings.
Change-Id: I8d585d66da894b359d47d16d9850ce709dedbcb7
Reviewed-on: https://code.wireshark.org/review/37853
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-dhcp.c')
-rw-r--r-- | epan/dissectors/packet-dhcp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-dhcp.c b/epan/dissectors/packet-dhcp.c index 1f7a5216c2..5bd88e800d 100644 --- a/epan/dissectors/packet-dhcp.c +++ b/epan/dissectors/packet-dhcp.c @@ -2455,7 +2455,7 @@ dissect_dhcpopt_client_full_domain_name(tvbuff_t *tvb, packet_info *pinfo, proto guint8 fqdn_flags; int offset = 0, length = tvb_reported_length(tvb); const guchar *dns_name; - guint dns_name_len; + gint dns_name_len; if (length < 3) { expert_add_info_format(pinfo, tree, &ei_dhcp_bad_length, "length isn't >= 3"); @@ -2781,7 +2781,7 @@ dissect_dhcpopt_dhcp_domain_search(tvbuff_t *tvb, packet_info *pinfo _U_, proto_ int length = tvb_reported_length(tvb); gchar *name_out; const guchar *dns_name; - guint dns_name_len; + gint dns_name_len; /* Encoding Long Options in the Dynamic Host Configuration Protocol (DHCPv4) (RFC 3396) */ /* Domain Names - Implementation And Specification (RFC 1035) */ @@ -2837,7 +2837,7 @@ dissect_dhcpopt_sip_servers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, { int length = tvb_reported_length(tvb); const guchar *dns_name; - guint dns_name_len; + gint dns_name_len; gchar *name_out; /* Encoding Long Options in the Dynamic Host Configuration Protocol (DHCPv4) (RFC 3396) */ @@ -3092,7 +3092,7 @@ dissect_dhcpopt_rdnss(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* { int offset = 0; const guchar *dns_name; - guint dns_name_len; + gint dns_name_len; if (tvb_reported_length(tvb) < 10) { expert_add_info_format(pinfo, tree, &ei_dhcp_bad_length, "length must be >= 10"); @@ -6697,7 +6697,7 @@ dissect_packetcable_ietf_ccc(packet_info *pinfo, proto_item *v_ti, proto_tree *v proto_item *vti; int max_timer_val = 255; const guchar *dns_name; - guint dns_name_len; + gint dns_name_len; subopt = tvb_get_guint8(tvb, suboptoff); suboptoff++; |