[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix compile warning in tor_inet_pton() (on 64bit)
commit 46d69cb9157abdf8655822963a6ad4c4161577a1
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date: Thu Nov 24 09:16:43 2011 +0100
Fix compile warning in tor_inet_pton() (on 64bit)
This slipped through into 0.2.3.8-alpha unfortunately.
---
changes/bug4554 | 4 ++++
src/common/compat.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/changes/bug4554 b/changes/bug4554
new file mode 100644
index 0000000..e4754c2
--- /dev/null
+++ b/changes/bug4554
@@ -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.
+
diff --git a/src/common/compat.c b/src/common/compat.c
index 20c45af..9a2c9d7 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -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);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits