[or-cvs] r8618: fix a size_t-to-len compile warning (tor/trunk/src/or)

arma at seul.org arma at seul.org
Fri Oct 6 22:37:12 UTC 2006


Author: arma
Date: 2006-10-06 18:37:10 -0400 (Fri, 06 Oct 2006)
New Revision: 8618

Modified:
   tor/trunk/src/or/control.c
Log:
fix a size_t-to-len compile warning


Modified: tor/trunk/src/or/control.c
===================================================================
--- tor/trunk/src/or/control.c	2006-10-06 22:35:21 UTC (rev 8617)
+++ tor/trunk/src/or/control.c	2006-10-06 22:37:10 UTC (rev 8618)
@@ -1079,7 +1079,7 @@
   if (options->CookieAuthentication) {
     if (password_len != AUTHENTICATION_COOKIE_LEN) {
       log_warn(LD_CONTROL, "Got authentication cookie with wrong length (%d)",
-               password_len);
+               (int)password_len);
       errstr = "Wrong length on authentication cookie.";
       goto err;
     } else if (memcmp(authentication_cookie, password, password_len)) {



More information about the tor-commits mailing list