Fix compilation warning
Change-Id: Ia7922415d8b22ba0c5a04ad6940c7e10bc205d57 Reviewed-on: https://code.wireshark.org/review/2371 Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
parent
544066530b
commit
4aad9d3b58
|
@ -225,7 +225,7 @@ tvbparse_wanted_t* tvbparse_chars(const int id,
|
||||||
char *accept_str;
|
char *accept_str;
|
||||||
gsize i;
|
gsize i;
|
||||||
|
|
||||||
accept_str = g_malloc(256);
|
accept_str = (char *)g_malloc(256);
|
||||||
memset(accept_str, 0x00, 256);
|
memset(accept_str, 0x00, 256);
|
||||||
for (i = 0; chr[i]; i++)
|
for (i = 0; chr[i]; i++)
|
||||||
accept_str[(unsigned) chr[i]] = 0xFF;
|
accept_str[(unsigned) chr[i]] = 0xFF;
|
||||||
|
@ -305,7 +305,7 @@ tvbparse_wanted_t* tvbparse_not_chars(const int id,
|
||||||
gsize i;
|
gsize i;
|
||||||
|
|
||||||
/* cond_chars_common() use accept string, so mark all elements with, and later unset from reject */
|
/* cond_chars_common() use accept string, so mark all elements with, and later unset from reject */
|
||||||
accept_str = g_malloc(256);
|
accept_str = (char *)g_malloc(256);
|
||||||
memset(accept_str, 0xFF, 256);
|
memset(accept_str, 0xFF, 256);
|
||||||
for (i = 0; chr[i]; i++)
|
for (i = 0; chr[i]; i++)
|
||||||
accept_str[(unsigned) chr[i]] = '\0';
|
accept_str[(unsigned) chr[i]] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue