aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-10-08 20:43:43 +0000
committerGuy Harris <guy@alum.mit.edu>2004-10-08 20:43:43 +0000
commit7b287f6696de4bcf277e27d5f6dcbd77cab79816 (patch)
tree0e7ce954b19fc00c86bcd79e98635cd1b5c7c1a7 /tools
parent4c9d419db3f4669f64f8262a0169d0a5f2539aaa (diff)
Make "ber_sequence" tables "const".
svn path=/trunk/; revision=12246
Diffstat (limited to 'tools')
-rw-r--r--tools/asn2eth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/asn2eth.py b/tools/asn2eth.py
index 174b155c04..2835f05e18 100644
--- a/tools/asn2eth.py
+++ b/tools/asn2eth.py
@@ -1935,7 +1935,7 @@ class SequenceOfType (SqType):
ef = ectx.field[f]['ethname']
out = ''
if (ectx.Ber()):
- out = "static ber_sequence %s_sequence_of[1] = {\n" % (tname)
+ out = "static const ber_sequence %s_sequence_of[1] = {\n" % (tname)
out += self.out_item(f, self.val, False, '', ectx)
out += "};\n"
out += ectx.eth_type_fn_hdr(tname)
@@ -1985,7 +1985,7 @@ class SetOfType (SqType):
ef = ectx.field[f]['ethname']
out = ''
if (ectx.Ber()):
- out = "static ber_sequence %s_set_of[1] = {\n" % (tname)
+ out = "static const ber_sequence %s_set_of[1] = {\n" % (tname)
out += self.out_item(f, self.val, False, '', ectx)
out += "};\n"
out += ectx.eth_type_fn_hdr(tname)