tls_utils: Try to fix -Wpointer-sign warnings.

Change-Id: Ia03499ae77dbbc840dc50ecf3ce56c399d939a6a
Reviewed-on: https://code.wireshark.org/review/37729
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Anders Broman 2020-07-06 12:54:57 +02:00 committed by Anders Broman
parent e01795489b
commit a8d5920caf
2 changed files with 3 additions and 3 deletions

View File

@ -3030,8 +3030,8 @@ tls13_hkdf_expand_label_context(int md, const StringInfo *secret,
const guint8 label_vector_length = label_prefix_length + label_length;
g_byte_array_append(info, &label_vector_length, 1);
g_byte_array_append(info, label_prefix, label_prefix_length);
g_byte_array_append(info, label, label_length);
g_byte_array_append(info, (const guint8 *)label_prefix, label_prefix_length);
g_byte_array_append(info, (const guint8*)label, label_length);
g_byte_array_append(info, &context_length, 1);
if (context_length) {

View File

@ -318,7 +318,7 @@ try_rval64_to_str_idx(const guint64 val, const range_string *rs, gint *idx);
/* BYTES TO STRING MATCHING */
typedef struct _bytes_string {
const guint8 *value;
const char *value;
const size_t value_length;
const gchar *strptr;
} bytes_string;