[tor-commits] [tor/master] Fix a compile warning on OSX 10.6

arma at torproject.org arma at torproject.org
Fri May 20 07:03:55 UTC 2011


commit c13fb7feb1ee9d97a0ccbdae880b90a73efcc07c
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Fri May 20 05:52:36 2011 +0200

    Fix a compile warning on OSX 10.6
---
 src/or/connection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/or/connection.c b/src/or/connection.c
index bcdde67..7241458 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -3233,7 +3233,7 @@ alloc_http_authenticator(const char *authenticator)
     tor_free(base64_authenticator); /* free and set to null */
   } else {
     int i = 0, j = 0;
-    int len = strlen(base64_authenticator);
+    ssize_t len = strlen(base64_authenticator);
 
     /* remove all newline occurrences within the string */
     for (i=0; i < len; ++i) {





More information about the tor-commits mailing list