From: Guy Harris Date: Wed, 17 Jul 2019 07:33:47 +0000 (-0700) Subject: Fix signedness warnings. X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=3e26533c08c3d43ac255769ee1098db735896847;p=gd%2Fwireshark%2F.git Fix signedness warnings. Change-Id: I2a0d6f6e73c56eb3b531d6e805c9db435ceb72e7 Reviewed-on: https://code.wireshark.org/review/33983 Petri-Dish: Guy Harris Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris --- diff --git a/plugins/epan/irda/packet-irda.c b/plugins/epan/irda/packet-irda.c index 7876e7daf3..6b3fefb140 100644 --- a/plugins/epan/irda/packet-irda.c +++ b/plugins/epan/irda/packet-irda.c @@ -584,8 +584,8 @@ static void dissect_iap_request(tvbuff_t* tvb, packet_info* pinfo, proto_tree* r char *attr_name = (char *) tvb_get_string_enc(wmem_packet_scope(), tvb, offset + 1 + 1 + clen + 1, alen, ENC_ASCII|ENC_NA); col_add_fstr(pinfo->cinfo, COL_INFO, "GetValueByClass: \"%s\" \"%s\"", - format_text(wmem_packet_scope(), class_name, strlen(class_name)), - format_text(wmem_packet_scope(), attr_name, strlen(attr_name))); + format_text(wmem_packet_scope(), (guchar *) class_name, strlen(class_name)), + format_text(wmem_packet_scope(), (guchar *) attr_name, strlen(attr_name))); /* Dissect IAP query if it is new */ if (iap_conv) @@ -1663,7 +1663,7 @@ static void dissect_xid(tvbuff_t* tvb, packet_info* pinfo, proto_tree* root, pro if (have_encoding) { name = (gchar *) tvb_get_string_enc(wmem_packet_scope(), tvb, offset, name_len, encoding); - col_append_fstr(pinfo->cinfo, COL_INFO, ", \"%s\"", format_text(wmem_packet_scope(), name, strlen(name))); + col_append_fstr(pinfo->cinfo, COL_INFO, ", \"%s\"", format_text(wmem_packet_scope(), (guchar *) name, strlen(name))); if (root) proto_tree_add_item(lmp_tree, hf_lmp_xid_name, tvb, offset, -1, encoding); @@ -1705,7 +1705,7 @@ static void dissect_log(tvbuff_t* tvb, packet_info* pinfo, proto_tree* root) else if (length > 1 && buf[length-2] == '\n') buf[length-2] = 0; - col_add_str(pinfo->cinfo, COL_INFO, format_text(wmem_packet_scope(), buf, strlen(buf))); + col_add_str(pinfo->cinfo, COL_INFO, format_text(wmem_packet_scope(), (guchar *) buf, strlen(buf))); } if (root)