For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.
[obnox/wireshark/wip.git] / epan / dissectors / packet-ancp.c
index 367b87cb5fb0d2a4ac5a1245a384c4e64b5a8cc5..52e5beb705bc8a5624c905c17ee8a7e5d4bf3426 100644 (file)
@@ -463,10 +463,10 @@ dissect_ancp_adj_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ancp_tree,
     col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)",
             val_to_str(adjcode, adj_code_names, "Unknown (0x%02x)"));
 
-    proto_tree_add_item(ancp_tree, hf_ancp_sender_name, tvb, offset, 6, FALSE);
+    proto_tree_add_item(ancp_tree, hf_ancp_sender_name, tvb, offset, 6, ENC_NA);
     offset += 6;
 
-    proto_tree_add_item(ancp_tree, hf_ancp_receiver_name, tvb,offset, 6, FALSE);
+    proto_tree_add_item(ancp_tree, hf_ancp_receiver_name, tvb,offset, 6, ENC_NA);
     offset += 6;
 
     proto_tree_add_item(ancp_tree, hf_ancp_sender_port, tvb, offset, 4, ENC_BIG_ENDIAN);
@@ -573,7 +573,7 @@ dissect_ancp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         proto_tree *ancp_tree = NULL;
         guint8  byte;
 
-        ti = proto_tree_add_item(tree, proto_ancp, tvb, 0, -1, FALSE);
+        ti = proto_tree_add_item(tree, proto_ancp, tvb, 0, -1, ENC_NA);
 
         ancp_tree = proto_item_add_subtree(ti, ett_ancp_len);