]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a compile warning on OSX 10.6
authorSebastian Hahn <sebastian@torproject.org>
Fri, 20 May 2011 03:52:36 +0000 (05:52 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Fri, 20 May 2011 03:53:55 +0000 (05:53 +0200)
src/or/connection.c

index bcdde67568020ec21a6f55e915fe8b8695056d52..72414589c8c8210dc50e3b9474ad3b334e855c84 100644 (file)
@@ -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) {