Fix signedness warnings.
authorGuy Harris <guy@alum.mit.edu>
Wed, 17 Jul 2019 07:33:47 +0000 (00:33 -0700)
committerGuy Harris <guy@alum.mit.edu>
Wed, 17 Jul 2019 13:57:47 +0000 (13:57 +0000)
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>
plugins/epan/irda/packet-irda.c

index 7876e7daf3ac8631ed097ab00838c73ea82950cb..6b3fefb140cdf9053869be7f21aea7635c484cf2 100644 (file)
@@ -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)