[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [trunnel/master] Make integer getters take a const argument.
commit 7ab910c32d78196a66d483663afbdf76857359a4
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Wed Dec 7 13:24:03 2016 -0500
Make integer getters take a const argument.
Bumping to Trunnel 1.5.1
---
lib/trunnel/CodeGen.py | 2 +-
lib/trunnel/__init__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/trunnel/CodeGen.py b/lib/trunnel/CodeGen.py
index 78a8991..032856e 100644
--- a/lib/trunnel/CodeGen.py
+++ b/lib/trunnel/CodeGen.py
@@ -1160,7 +1160,7 @@ class AccessorFnGenerator(CodeGenerator):
self.docstring(
"Return the value of the %s field of the %s_t in 'inp'" % (nm, st))
- self.declaration(tp, "%s_get_%s(%s_t *inp)" % (st, nm, st))
+ self.declaration(tp, "%s_get_%s(const %s_t *inp)" % (st, nm, st))
self.w("{\n"
" return inp->%s;\n"
"}\n" % smi.c_name)
diff --git a/lib/trunnel/__init__.py b/lib/trunnel/__init__.py
index 519c6ec..a783d60 100644
--- a/lib/trunnel/__init__.py
+++ b/lib/trunnel/__init__.py
@@ -3,4 +3,4 @@
# a package.
#
-__version__ = "1.5"
+__version__ = "1.5.1"
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits