aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gdb.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-02-15 02:45:20 +0000
committerJoão Valverde <j@v6e.pt>2022-02-15 11:38:16 +0000
commit8efad466c4e62b0371659c8fd1d909038c36da27 (patch)
tree30fd6d3f87988d8b65dd52afcbcc88fbf0e28cc9 /epan/dissectors/packet-gdb.c
parent8198dd51cd6c731f620c1c7edf370c9c70966a44 (diff)
Tools: Fix fix-encoding-args.pl ASCII string validation
Do not require a useless ENC_NA parameter for string encodings. FT_STRING and FT_STRINGZ types don't have any ndianness. Follow-up to 6ec429622c9258eefd388caf21ce92ab5b9f54b4.
Diffstat (limited to 'epan/dissectors/packet-gdb.c')
-rw-r--r--epan/dissectors/packet-gdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-gdb.c b/epan/dissectors/packet-gdb.c
index d3ec7fd7f2..6cdd18faf6 100644
--- a/epan/dissectors/packet-gdb.c
+++ b/epan/dissectors/packet-gdb.c
@@ -75,7 +75,7 @@ dissect_gdb_token(void *tvbparse_data, const void *wanted_data, tvbparse_elem_t
break;
case GDB_TOK_START:
proto_tree_add_item(tree, hf_gdb_start,
- tok->tvb, tok->offset, tok->len, ENC_ASCII|ENC_NA);
+ tok->tvb, tok->offset, tok->len, ENC_ASCII);
break;
case GDB_TOK_PAYLOAD:
proto_tree_add_item(tree, hf_gdb_payload,
@@ -83,11 +83,11 @@ dissect_gdb_token(void *tvbparse_data, const void *wanted_data, tvbparse_elem_t
break;
case GDB_TOK_END:
proto_tree_add_item(tree, hf_gdb_end,
- tok->tvb, tok->offset, tok->len, ENC_ASCII|ENC_NA);
+ tok->tvb, tok->offset, tok->len, ENC_ASCII);
break;
case GDB_TOK_CHKSUM:
proto_tree_add_item(tree, hf_gdb_chksum,
- tok->tvb, tok->offset, tok->len, ENC_ASCII|ENC_NA);
+ tok->tvb, tok->offset, tok->len, ENC_ASCII);
break;
default:
break;