diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-05-11 03:38:04 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-05-11 03:38:04 +0000 |
commit | 9b179f0233876dd16fb8cce1c530943260917d4b (patch) | |
tree | a8e71c58c5fbea2853ef8233cd7cf0b18351589e /epan/dissectors | |
parent | 18dc512738650984e7b515961337d32146a431ea (diff) |
Get rid of remaining Booleans-as-encoding-arguments in
proto_tree_add_item() calls. (We actually need to support additional
encodings with ENC_ values and use them.)
svn path=/trunk/; revision=42558
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-srvloc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/epan/dissectors/packet-srvloc.c b/epan/dissectors/packet-srvloc.c index 6ce17c0a7b..786d02130f 100644 --- a/epan/dissectors/packet-srvloc.c +++ b/epan/dissectors/packet-srvloc.c @@ -422,7 +422,8 @@ add_v1_string(proto_tree *tree, int hf, tvbuff_t *tvb, int offset, int length, break; default: - proto_tree_add_item(tree, hf, tvb, offset, length, TRUE); + /* XXX - need to support all the CHARSET_ values */ + proto_tree_add_item(tree, hf, tvb, offset, length, ENC_ASCII|ENC_NA); break; } } @@ -699,7 +700,8 @@ attr_list(proto_tree *tree, int hf, tvbuff_t *tvb, int offset, int length, default: - proto_tree_add_item(tree, hf, tvb, offset, length, TRUE); + /* XXX - need to handle specific encodings */ + proto_tree_add_item(tree, hf, tvb, offset, length, ENC_ASCII|ENC_NA); break; } } @@ -719,7 +721,8 @@ attr_list2(proto_tree *tree, int hf, tvbuff_t *tvb, int offset, int length, guin */ /* create a sub tree for attributes */ - ti = proto_tree_add_item(tree, hf, tvb, offset, length, TRUE); + /* XXX - is this always ASCII, or what? */ + ti = proto_tree_add_item(tree, hf, tvb, offset, length, ENC_ASCII|ENC_NA); attr_tree = proto_item_add_subtree(ti, ett_srvloc_attr); /* this will ensure there is a terminating null */ |