diff options
Diffstat (limited to 'epan/dissectors/asn1/ftam/packet-ftam-template.c')
-rw-r--r-- | epan/dissectors/asn1/ftam/packet-ftam-template.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/asn1/ftam/packet-ftam-template.c b/epan/dissectors/asn1/ftam/packet-ftam-template.c index 37d59ea4cf..30917702fa 100644 --- a/epan/dissectors/asn1/ftam/packet-ftam-template.c +++ b/epan/dissectors/asn1/ftam/packet-ftam-template.c @@ -33,20 +33,20 @@ void proto_register_ftam(void); void proto_reg_handoff_ftam(void); /* Initialize the protocol and registered fields */ -static int proto_ftam = -1; +static int proto_ftam; /* Declare the function to avoid a compiler warning */ -static int dissect_ftam_OR_Set(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_); +static int dissect_ftam_OR_Set(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_); -static int hf_ftam_unstructured_text = -1; /* ISO FTAM unstructured text */ -static int hf_ftam_unstructured_binary = -1; /* ISO FTAM unstructured binary */ +static int hf_ftam_unstructured_text; /* ISO FTAM unstructured text */ +static int hf_ftam_unstructured_binary; /* ISO FTAM unstructured binary */ #include "packet-ftam-hf.c" /* Initialize the subtree pointers */ -static gint ett_ftam = -1; +static gint ett_ftam; #include "packet-ftam-ett.c" -static expert_field ei_ftam_zero_pdu = EI_INIT; +static expert_field ei_ftam_zero_pdu; #include "packet-ftam-fn.c" @@ -56,7 +56,7 @@ static expert_field ei_ftam_zero_pdu = EI_INIT; static int dissect_ftam_unstructured_text(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *parent_tree, void* data _U_) { - proto_tree_add_item (parent_tree, hf_ftam_unstructured_text, tvb, 0, tvb_reported_length_remaining(tvb, 0), ENC_ASCII|ENC_NA); + proto_tree_add_item (parent_tree, hf_ftam_unstructured_text, tvb, 0, tvb_reported_length_remaining(tvb, 0), ENC_ASCII); return tvb_captured_length(tvb); } |