aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgal <gal@f5534014-38df-0310-8fa8-9805f1628bb7>2010-06-09 15:20:48 +0000
committergal <gal@f5534014-38df-0310-8fa8-9805f1628bb7>2010-06-09 15:20:48 +0000
commite55439382e51f0057add3794a8f7a178393ebb69 (patch)
tree32beed8f42bba7b64d3d3aa605c3bb55e2ce55f0
parent2a746291e6a7220869bf7166b677f860d8ed0d96 (diff)
Update for missing const for object identifier string and marking tree as unused.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33186 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r--asn1/idmp/packet-idmp-template.c6
-rw-r--r--epan/dissectors/packet-idmp.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/asn1/idmp/packet-idmp-template.c b/asn1/idmp/packet-idmp-template.c
index 759348f242..a9bf524a96 100644
--- a/asn1/idmp/packet-idmp-template.c
+++ b/asn1/idmp/packet-idmp-template.c
@@ -56,8 +56,8 @@ static dissector_handle_t idmp_handle = NULL;
static proto_tree *top_tree = NULL;
static struct SESSION_DATA_STRUCTURE* session = NULL;
-static char *protocolID = NULL;
-static char *saved_protocolID = NULL;
+static const char *protocolID = NULL;
+static const char *saved_protocolID = NULL;
static guint32 opcode = -1;
void prefs_register_idmp(void); /* forward declaration for use in preferences registration */
@@ -107,7 +107,7 @@ static const fragment_items idmp_frag_items = {
};
-static int call_idmp_oid_callback(tvbuff_t *tvb, int offset, packet_info *pinfo, int op, proto_tree *tree)
+static int call_idmp_oid_callback(tvbuff_t *tvb, int offset, packet_info *pinfo, int op, proto_tree *tree _U_)
{
struct SESSION_DATA_STRUCTURE *session;
diff --git a/epan/dissectors/packet-idmp.c b/epan/dissectors/packet-idmp.c
index 7bd4fbcab9..3514eaf4fe 100644
--- a/epan/dissectors/packet-idmp.c
+++ b/epan/dissectors/packet-idmp.c
@@ -1,7 +1,7 @@
/* Do not modify this file. */
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
/* packet-idmp.c */
-/* ../../tools/asn2wrs.py -b -e -L -p idmp -c ./idmp.cnf -s ./packet-idmp-template -D . IDMProtocolSpecification.asn CommonProtocolSpecification.asn */
+/* ../../tools/asn2wrs.py -b -e -L -k -p idmp -c ./idmp.cnf -s ./packet-idmp-template -D . IDMProtocolSpecification.asn CommonProtocolSpecification.asn */
/* Input file: packet-idmp-template.c */
@@ -64,8 +64,8 @@ static dissector_handle_t idmp_handle = NULL;
static proto_tree *top_tree = NULL;
static struct SESSION_DATA_STRUCTURE* session = NULL;
-static char *protocolID = NULL;
-static char *saved_protocolID = NULL;
+static const char *protocolID = NULL;
+static const char *saved_protocolID = NULL;
static guint32 opcode = -1;
void prefs_register_idmp(void); /* forward declaration for use in preferences registration */
@@ -115,7 +115,7 @@ static const fragment_items idmp_frag_items = {
};
-static int call_idmp_oid_callback(tvbuff_t *tvb, int offset, packet_info *pinfo, int op, proto_tree *tree)
+static int call_idmp_oid_callback(tvbuff_t *tvb, int offset, packet_info *pinfo, int op, proto_tree *tree _U_)
{
struct SESSION_DATA_STRUCTURE *session;