forked from osmocom/wireshark
More constification of arrays.
svn path=/trunk/; revision=12261
This commit is contained in:
parent
716985d56f
commit
512285a434
|
@ -2089,9 +2089,9 @@ class SequenceType (SqType):
|
||||||
def eth_type_fn(self, proto, tname, ectx):
|
def eth_type_fn(self, proto, tname, ectx):
|
||||||
fname = ectx.eth_type[tname]['ref'][0]
|
fname = ectx.eth_type[tname]['ref'][0]
|
||||||
if (ectx.OBer()):
|
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:
|
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'):
|
if hasattr(self, 'ext_list'):
|
||||||
ext = 'ASN1_EXTENSION_ROOT'
|
ext = 'ASN1_EXTENSION_ROOT'
|
||||||
else:
|
else:
|
||||||
|
@ -2317,9 +2317,9 @@ class ChoiceType (Type):
|
||||||
if (e.GetTag(ectx)[0] != t):
|
if (e.GetTag(ectx)[0] != t):
|
||||||
tagval = False
|
tagval = False
|
||||||
if (ectx.OBer()):
|
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:
|
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
|
cnt = 0
|
||||||
if hasattr(self, 'ext_list'):
|
if hasattr(self, 'ext_list'):
|
||||||
ext = 'ASN1_EXTENSION_ROOT'
|
ext = 'ASN1_EXTENSION_ROOT'
|
||||||
|
|
Loading…
Reference in New Issue