From 81d2de9252e87de83963f3f3bbfe101c65582a90 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Fri, 12 Jul 2019 15:59:12 +0200 Subject: Try to fix Wpointer-sign warnings. Change-Id: I52d24560d4061c996c25b290ee347cc55404c216 Reviewed-on: https://code.wireshark.org/review/33914 Tested-by: Petri Dish Buildbot Petri-Dish: Anders Broman Reviewed-by: Peter Wu --- epan/dissectors/packet-dhcp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'epan/dissectors/packet-dhcp.c') diff --git a/epan/dissectors/packet-dhcp.c b/epan/dissectors/packet-dhcp.c index 3ab58ab954..3d52b60266 100644 --- a/epan/dissectors/packet-dhcp.c +++ b/epan/dissectors/packet-dhcp.c @@ -2449,8 +2449,8 @@ 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; + const gchar *dns_name; + guint dns_name_len; if (length < 3) { expert_add_info_format(pinfo, tree, &ei_dhcp_bad_length, "length isn't >= 3"); @@ -2774,8 +2774,8 @@ static int dissect_dhcpopt_dhcp_domain_search(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) { int length = tvb_reported_length(tvb); - const guchar *dns_name; - guint dns_name_len; + const gchar *dns_name; + guint dns_name_len; /* Encoding Long Options in the Dynamic Host Configuration Protocol (DHCPv4) (RFC 3396) */ /* Domain Names - Implementation And Specification (RFC 1035) */ @@ -2829,8 +2829,8 @@ static int dissect_dhcpopt_sip_servers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { int length = tvb_reported_length(tvb); - const guchar *dns_name; - guint dns_name_len; + const gchar *dns_name; + guint dns_name_len; /* Encoding Long Options in the Dynamic Host Configuration Protocol (DHCPv4) (RFC 3396) */ /* Domain Names - Implementation And Specification (RFC 1035) */ @@ -3082,7 +3082,7 @@ static int dissect_dhcpopt_rdnss(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { int offset = 0; - const guchar *dns_name; + const gchar *dns_name; guint dns_name_len; if (tvb_reported_length(tvb) < 10) { @@ -6603,7 +6603,7 @@ dissect_packetcable_ietf_ccc(packet_info *pinfo, proto_item *v_ti, proto_tree *v proto_tree *pkt_s_tree; proto_item *vti; int max_timer_val = 255; - const guchar *dns_name; + const gchar *dns_name; guint dns_name_len; subopt = tvb_get_guint8(tvb, suboptoff); -- cgit v1.2.3