For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.
[obnox/wireshark/wip.git] / asn1 / nbap / packet-nbap-template.c
index f8f761b794b6f7a32895dc170fabf83524285a36..a1b3dfaf2e3ebf7b893ed41c5f78b651dbe9f885 100644 (file)
@@ -120,9 +120,9 @@ dissect_nbap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBAP");
 
        /* create the nbap protocol tree */
-       nbap_item = proto_tree_add_item(tree, proto_nbap, tvb, 0, -1, FALSE);
+       nbap_item = proto_tree_add_item(tree, proto_nbap, tvb, 0, -1, ENC_NA);
        nbap_tree = proto_item_add_subtree(nbap_item, ett_nbap);
-       
+
        dissect_NBAP_PDU_PDU(tvb, pinfo, nbap_tree);
 }
 
@@ -157,7 +157,7 @@ void proto_register_nbap(void) {
   /* Register fields and subtrees */
   proto_register_field_array(proto_nbap, hf, array_length(hf));
   proto_register_subtree_array(ett, array_length(ett));
+
   /* Register dissector */
   register_dissector("nbap", dissect_nbap, proto_nbap);