aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-10-11 08:36:55 +0000
committerGuy Harris <guy@alum.mit.edu>2004-10-11 08:36:55 +0000
commit512285a434a404e970d5e9d31941810b2bc8196a (patch)
tree8fae764870c7220a10ab06ab483d3c5ab3938eb7 /tools
parent716985d56f819e94d333267c88434978bff268b0 (diff)
More constification of arrays.
svn path=/trunk/; revision=12261
Diffstat (limited to 'tools')
-rw-r--r--tools/asn2eth.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/asn2eth.py b/tools/asn2eth.py
index 4f961c02fd..4d10469acc 100644
--- a/tools/asn2eth.py
+++ b/tools/asn2eth.py
@@ -2089,9 +2089,9 @@ class SequenceType (SqType):
def eth_type_fn(self, proto, tname, ectx):
fname = ectx.eth_type[tname]['ref'][0]
if (ectx.OBer()):
- out = "static %s_sequence %s_sequence[] = {\n" % (ectx.encp(), tname)
+ out = "static const %s_sequence %s_sequence[] = {\n" % (ectx.encp(), tname)
else:
- out = "static %s_sequence_t %s_sequence[] = {\n" % (ectx.encp(), tname)
+ out = "static const %s_sequence_t %s_sequence[] = {\n" % (ectx.encp(), tname)
if hasattr(self, 'ext_list'):
ext = 'ASN1_EXTENSION_ROOT'
else:
@@ -2317,9 +2317,9 @@ class ChoiceType (Type):
if (e.GetTag(ectx)[0] != t):
tagval = False
if (ectx.OBer()):
- out += "static %s_choice %s_choice[] = {\n" % (ectx.encp(), tname)
+ out += "static const %s_choice %s_choice[] = {\n" % (ectx.encp(), tname)
else:
- out += "static %s_choice_t %s_choice[] = {\n" % (ectx.encp(), tname)
+ out += "static const %s_choice_t %s_choice[] = {\n" % (ectx.encp(), tname)
cnt = 0
if hasattr(self, 'ext_list'):
ext = 'ASN1_EXTENSION_ROOT'