summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/ilp/packet-ilp-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/asn1/ilp/packet-ilp-template.c')
-rw-r--r--epan/dissectors/asn1/ilp/packet-ilp-template.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/epan/dissectors/asn1/ilp/packet-ilp-template.c b/epan/dissectors/asn1/ilp/packet-ilp-template.c
index 48cd9386..4c6e7535 100644
--- a/epan/dissectors/asn1/ilp/packet-ilp-template.c
+++ b/epan/dissectors/asn1/ilp/packet-ilp-template.c
@@ -18,6 +18,7 @@
#include <epan/packet.h>
#include <epan/prefs.h>
#include <epan/asn1.h>
+#include <wsutil/array.h>
#include "packet-per.h"
#include "packet-tcp.h"
@@ -42,19 +43,19 @@ static dissector_handle_t ilp_tcp_handle;
#define ILP_TCP_PORT 7276
/* Initialize the protocol and registered fields */
-static int proto_ilp = -1;
+static int proto_ilp;
#define ILP_HEADER_SIZE 2
-static gboolean ilp_desegment = TRUE;
+static bool ilp_desegment = true;
#include "packet-ilp-hf.c"
-static int hf_ilp_mobile_directory_number = -1;
+static int hf_ilp_mobile_directory_number;
/* Initialize the subtree pointers */
-static gint ett_ilp = -1;
-static gint ett_ilp_setid = -1;
+static int ett_ilp;
+static int ett_ilp_setid;
#include "packet-ilp-ett.c"
/* Include constants */
@@ -64,7 +65,7 @@ static gint ett_ilp_setid = -1;
#include "packet-ilp-fn.c"
-static guint
+static unsigned
get_ilp_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset, void *data _U_)
{
/* PDU length = Message length */
@@ -95,7 +96,7 @@ void proto_register_ilp(void) {
};
/* List of subtrees */
- static gint *ett[] = {
+ static int *ett[] = {
&ett_ilp,
&ett_ilp_setid,
#include "packet-ilp-ettarr.c"