diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-07-17 00:33:47 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-07-17 13:57:47 +0000 |
commit | 3e26533c08c3d43ac255769ee1098db735896847 (patch) | |
tree | e9fe138721dd0ab8a1e9bdd28cfbc0aa5dba7798 /plugins | |
parent | d1d0f6d5d14cef6e40da7f99f0e26f52e2c16be1 (diff) |
Fix signedness warnings.
Change-Id: I2a0d6f6e73c56eb3b531d6e805c9db435ceb72e7
Reviewed-on: https://code.wireshark.org/review/33983
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/epan/irda/packet-irda.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) |