aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2022-09-07 08:41:36 +0200
committerAndersBroman <a.broman58@gmail.com>2022-09-07 08:19:39 +0000
commit83a0ec0647b171e50a254b5c73b32d3f7a788fb5 (patch)
tree402ab3e8747c1a2834dbb2f0f26d3e5b7ab5e83a /plugins
parentcda3a3dbe97aa02038ba9fe678851a4d61d61b20 (diff)
opcua: Squelch a couple of warnings by adding casts.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/epan/opcua/opcua.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/epan/opcua/opcua.c b/plugins/epan/opcua/opcua.c
index 99287102e3..b5d2d1b138 100644
--- a/plugins/epan/opcua/opcua.c
+++ b/plugins/epan/opcua/opcua.c
@@ -152,37 +152,37 @@ static int dissect_opcua_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
col_set_str(pinfo->cinfo, COL_PROTOCOL, "OpcUa");
/* parse message type */
- if (tvb_memeql(tvb, 0, "HEL", 3) == 0)
+ if (tvb_memeql(tvb, 0, (const guint8 * )"HEL", 3) == 0)
{
msgtype = MSG_HELLO;
pfctParse = parseHello;
}
- else if (tvb_memeql(tvb, 0, "ACK", 3) == 0)
+ else if (tvb_memeql(tvb, 0, (const guint8*)"ACK", 3) == 0)
{
msgtype = MSG_ACKNOWLEDGE;
pfctParse = parseAcknowledge;
}
- else if (tvb_memeql(tvb, 0, "ERR", 3) == 0)
+ else if (tvb_memeql(tvb, 0, (const guint8*)"ERR", 3) == 0)
{
msgtype = MSG_ERROR;
pfctParse = parseError;
}
- else if (tvb_memeql(tvb, 0, "RHE", 3) == 0)
+ else if (tvb_memeql(tvb, 0, (const guint8*)"RHE", 3) == 0)
{
msgtype = MSG_REVERSEHELLO;
pfctParse = parseReverseHello;
}
- else if (tvb_memeql(tvb, 0, "MSG", 3) == 0)
+ else if (tvb_memeql(tvb, 0, (const guint8*)"MSG", 3) == 0)
{
msgtype = MSG_MESSAGE;
pfctParse = parseMessage;
}
- else if (tvb_memeql(tvb, 0, "OPN", 3) == 0)
+ else if (tvb_memeql(tvb, 0, (const guint8*)"OPN", 3) == 0)
{
msgtype = MSG_OPENSECURECHANNEL;
pfctParse = parseOpenSecureChannel;
}
- else if (tvb_memeql(tvb, 0, "CLO", 3) == 0)
+ else if (tvb_memeql(tvb, 0, (const guint8*)"CLO", 3) == 0)
{
msgtype = MSG_CLOSESECURECHANNEL;
pfctParse = parseCloseSecureChannel;