[tor-commits] [trunnel/master] Generate correct function signature for $type_encode

nickm at torproject.org nickm at torproject.org
Tue Aug 18 12:59:01 UTC 2015


commit e0901b36e87c348dc3228961c7a833fa5a1b2d62
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Tue Aug 18 14:39:21 2015 +0200

    Generate correct function signature for $type_encode
---
 lib/trunnel/CodeGen.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/trunnel/CodeGen.py b/lib/trunnel/CodeGen.py
index 047a078..038cdd8 100644
--- a/lib/trunnel/CodeGen.py
+++ b/lib/trunnel/CodeGen.py
@@ -885,7 +885,7 @@ class PrototypeGenerationVisitor(CodeGenerator):
                           was not long enough, and -1 if the input was
                           invalid.""" % (name))
         self.w(
-            "ssize_t %s_encode(uint8_t *output, const size_t avail, const %s_t *input%s);\n" %
+            "ssize_t %s_encode(uint8_t *output, size_t avail, const %s_t *input%s);\n" %
                (name, name, contextFormals))
 
         self.docstring("""Check whether the internal state of the %s in



More information about the tor-commits mailing list