aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-02-27 00:51:14 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-02-27 00:51:14 +0000
commitee82d9a0105ba5ed74b3f8e6fe15e42f31759291 (patch)
tree1016bed03261c802803f3f9bbe7f77259b8782e9 /tools
parent7de0f8fe2439c14c7ccccf2e8b7042eaf361e21c (diff)
Constify.
Don't have variables that point to string constants, just make the string constants be static const arrays. strlen(array of unspecified size initialized with a string) == sizeof array - 1; the latter can be computed at compile time. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32020 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-rwxr-xr-xtools/asn2wrs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index c7b45926d6..e52a91bda8 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -47,8 +47,8 @@ import time
import getopt
import traceback
-import lex
-import yacc
+from ply import lex
+from ply import yacc
# OID name -> number conversion table
oid_names = {