]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compile warning in tor_inet_pton() (on 64bit)
authorSebastian Hahn <sebastian@torproject.org>
Thu, 24 Nov 2011 08:16:43 +0000 (09:16 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Thu, 24 Nov 2011 08:19:57 +0000 (09:19 +0100)
This slipped through into 0.2.3.8-alpha unfortunately.

changes/bug4554 [new file with mode: 0644]
src/common/compat.c

diff --git a/changes/bug4554 b/changes/bug4554
new file mode 100644 (file)
index 0000000..e4754c2
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Fix a compile warning in tor_inet_pton(). Bugfix on 0.2.3.8-alpha;
+      fixes bug 4554.
+
index 20c45af00b91cb002825df0b7c315bca7524ad9a..9a2c9d764bef9de7bcf121813af4abf935719e0d 100644 (file)
@@ -1733,7 +1733,7 @@ tor_inet_pton(int af, const char *src, void *dst)
         return 0;
       if (TOR_ISXDIGIT(*src)) {
         char *next;
-        int len;
+        ssize_t len;
         long r = strtol(src, &next, 16);
         tor_assert(next != NULL);
         tor_assert(next != src);