diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
commit | a86c5f7cae7ec9a3398300555a0b644689d946a1 (patch) | |
tree | 39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /epan/dissectors/packet-gdb.c | |
parent | Releasing progress-linux version 4.2.6-1~progress7.99u1. (diff) | |
download | wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-gdb.c')
-rw-r--r-- | epan/dissectors/packet-gdb.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/epan/dissectors/packet-gdb.c b/epan/dissectors/packet-gdb.c index 253269fd..95d9519f 100644 --- a/epan/dissectors/packet-gdb.c +++ b/epan/dissectors/packet-gdb.c @@ -45,15 +45,15 @@ void proto_reg_handoff_gdb(void); static dissector_handle_t gdb_handle; -static int proto_gdb = -1; +static int proto_gdb; -static gint ett_gdb = -1; +static int ett_gdb; -static int hf_gdb_ack = -1; -static int hf_gdb_start = -1; -static int hf_gdb_payload = -1; -static int hf_gdb_end = -1; -static int hf_gdb_chksum = -1; +static int hf_gdb_ack; +static int hf_gdb_start; +static int hf_gdb_payload; +static int hf_gdb_end; +static int hf_gdb_chksum; static tvbparse_wanted_t *want; @@ -61,7 +61,7 @@ static void dissect_gdb_token(void *tvbparse_data, const void *wanted_data, tvbparse_elem_t *tok) { proto_tree *tree; - guint token; + unsigned token; if (!tok) /* XXX - is this check necessary? */ return; @@ -146,15 +146,15 @@ dissect_gdb_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) static int dissect_gdb_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { - gint offset=0, offset_start; - gint pos; - guint packet_len; + int offset=0, offset_start; + int pos; + unsigned packet_len; tvbuff_t *packet_tvb; while (tvb_captured_length_remaining(tvb, offset) > 0) { packet_tvb = NULL; offset_start = offset; - pos = tvb_find_guint8(tvb, offset, -1, '#'); + pos = tvb_find_uint8(tvb, offset, -1, '#'); if (pos != -1) { offset += pos; offset++; /* skip the hash sign */ @@ -201,7 +201,7 @@ proto_register_gdb(void) NULL, 0, NULL, HFILL } } }; - static gint *ett[] = { + static int *ett[] = { &ett_gdb }; |