Fix more problems found by Steve Grubb, along with other changes:
[obnox/wireshark/wip.git] / asn1 / camel / packet-camel-template.c
index a3a760e49919700379cbc98f2f8488b21698b29e..f3136b9ccbc368f178d4383c1a2282b7e847da86 100644 (file)
@@ -109,6 +109,7 @@ static const true_false_string camel_extension_value = {
 };
 #define EUROPEAN_DATE 1
 #define AMERICAN_DATE 2
+#define CAMEL_DATE_AND_TIME_LEN 20 /* 2*5 + 4 + 5 + 1 (HH:MM:SS;mm/dd/yyyy) */
 
 static enum_val_t date_options[] = {
   { "european",         "DD/MM/YYYY",       EUROPEAN_DATE },
@@ -505,7 +506,7 @@ static guint8 camel_pdu_size = 0;
 static int
 dissect_camel_camelPDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
 
-  char *version_ptr, *version_str;
+  char *version_ptr;
 
   opcode = 0;
   application_context_version = 0;