summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rdp_snd.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
commitc4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch)
tree93d5c6aa93d9987680dd1adad5685e2ad698f223 /epan/dissectors/packet-rdp_snd.c
parentAdding upstream version 4.2.6. (diff)
downloadwireshark-upstream.tar.xz
wireshark-upstream.zip
Adding upstream version 4.4.0.upstream/4.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-rdp_snd.c')
-rw-r--r--epan/dissectors/packet-rdp_snd.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/epan/dissectors/packet-rdp_snd.c b/epan/dissectors/packet-rdp_snd.c
index 1201cedf..36498138 100644
--- a/epan/dissectors/packet-rdp_snd.c
+++ b/epan/dissectors/packet-rdp_snd.c
@@ -31,13 +31,13 @@ void proto_register_rdp_snd(void);
void proto_reg_handoff_rdp_snd(void);
-static int proto_rdp_snd = -1;
+static int proto_rdp_snd;
-static int hf_snd_msgType = -1;
-static int hf_snd_bPad = -1;
-static int hf_snd_bodySize = -1;
+static int hf_snd_msgType;
+static int hf_snd_bPad;
+static int hf_snd_bodySize;
-static int ett_rdp_snd = -1;
+static int ett_rdp_snd;
enum {
@@ -79,16 +79,16 @@ static int
dissect_rdp_snd(tvbuff_t *tvb _U_, packet_info *pinfo, proto_tree *parent_tree _U_, void *data _U_)
{
proto_item *item;
- gint nextOffset, offset = 0;
- guint32 cmdId = 0;
- guint32 pduLength;
+ int nextOffset, offset = 0;
+ uint32_t cmdId = 0;
+ uint32_t pduLength;
proto_tree *tree;
parent_tree = proto_tree_get_root(parent_tree);
col_set_str(pinfo->cinfo, COL_PROTOCOL, "RDPSND");
col_clear(pinfo->cinfo, COL_INFO);
- pduLength = tvb_get_guint32(tvb, offset + 2, ENC_LITTLE_ENDIAN) + 4;
+ pduLength = tvb_get_uint32(tvb, offset + 2, ENC_LITTLE_ENDIAN) + 4;
nextOffset = offset + pduLength;
item = proto_tree_add_item(parent_tree, proto_rdp_snd, tvb, offset, pduLength, ENC_NA);
@@ -103,7 +103,7 @@ dissect_rdp_snd(tvbuff_t *tvb _U_, packet_info *pinfo, proto_tree *parent_tree _
proto_tree_add_item(tree, hf_snd_bodySize, tvb, offset, 2, ENC_LITTLE_ENDIAN);
//offset += 2;
- col_add_fstr(pinfo->cinfo, COL_INFO, "%s", val_to_str_const(cmdId, rdp_snd_order_vals, "Unknown rdpsnd command"));
+ col_set_str(pinfo->cinfo, COL_INFO, val_to_str_const(cmdId, rdp_snd_order_vals, "Unknown rdpsnd command"));
switch (cmdId) {
case SNDC_CLOSE:
@@ -147,7 +147,7 @@ void proto_register_rdp_snd(void) {
},
};
- static gint *ett[] = {
+ static int *ett[] = {
&ett_rdp_snd,
};