Constify "asn_namedbit" structures.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 11 Oct 2004 06:31:23 +0000 (06:31 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 11 Oct 2004 06:31:23 +0000 (06:31 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12252 f5534014-38df-0310-8fa8-9805f1628bb7

tools/asn2eth.py

index 2835f05e18023364959528b3b21eab99ed39270a..4f961c02fdb6a3cf2a58194e518615c329dcacaa 100644 (file)
@@ -737,7 +737,7 @@ class EthCtx:
   #--- eth_bits ---------------------------------------------------------------
   def eth_bits(self, tname, bits):
     out = ""
-    out += "static "
+    out += "static const "
     out += "asn_namedbit %s_bits[] = {\n" % (tname)
     for (val, id) in bits:
       out += '  { %2d, &hf_%s_%s_%s, -1, -1, NULL, NULL },\n' % (val, self.eproto, tname, id)