[or-cvs] [tor/master] Clean up a couple of style issues in the socks-client branch.

Nick Mathewson nickm at seul.org
Wed Aug 26 15:34:35 UTC 2009


Author: Nick Mathewson <nickm at torproject.org>
Date: Tue, 25 Aug 2009 10:30:54 -0400
Subject: Clean up a couple of style issues in the socks-client branch.
Commit: 903f9ef50e418f6ec1a1ab7ae8146e9d6d2a7767

---
 src/or/connection.c |    2 +-
 src/or/reasons.c    |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/or/connection.c b/src/or/connection.c
index ccfbe19..65ca389 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1386,7 +1386,7 @@ connection_proxy_connect(connection_t *conn, int type)
       memcpy(buf + 4, &ip4addr, 4); /* addr */
       buf[8] = 0; /* userid (empty) */
 
-      connection_write_to_buf((char *)buf, sizeof buf, conn);
+      connection_write_to_buf((char *)buf, sizeof(buf), conn);
       conn->proxy_state = PROXY_SOCKS4_WANT_CONNECT_OK;
       break;
     }
diff --git a/src/or/reasons.c b/src/or/reasons.c
index 5efb08b..78a16af 100644
--- a/src/or/reasons.c
+++ b/src/or/reasons.c
@@ -369,3 +369,4 @@ socks5_response_code_to_string(uint8_t code)
       return "unknown reason";
   }
 }
+
-- 
1.5.6.5




More information about the tor-commits mailing list