[tor-commits] [stegotorus/master] Comment out unused-but-set variable to avoid gcc 4.6 warning

zwol at torproject.org zwol at torproject.org
Fri Jul 20 23:17:07 UTC 2012


commit 44d9df6cf73e3beafd0b5e0736ae3d02269a9b36
Author: Zack Weinberg <zackw at panix.com>
Date:   Wed Feb 15 08:02:14 2012 -0800

    Comment out unused-but-set variable to avoid gcc 4.6 warning
---
 src/steg/http.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/steg/http.cc b/src/steg/http.cc
index 3251995..9d296b5 100644
--- a/src/steg/http.cc
+++ b/src/steg/http.cc
@@ -621,7 +621,7 @@ http_server_receive(http *s, conn_t *conn, struct evbuffer *dest, struct evbuffe
     char outbuf[MAX_COOKIE_SIZE];
     char outbuf2[MAX_COOKIE_SIZE];
     int sofar = 0;
-    int cookie_mode = 0;
+    //int cookie_mode = 0;
 
 
     if (s2.pos == -1) {
@@ -646,7 +646,7 @@ http_server_receive(http *s, conn_t *conn, struct evbuffer *dest, struct evbuffe
 
     if (strstr((char*) data, "Cookie") != NULL) {
       p = strstr((char*) data, "Cookie:") + sizeof "Cookie: "-1;
-      cookie_mode = 1;
+      //cookie_mode = 1;
     }
     else
       p = data + sizeof "GET /" -1;





More information about the tor-commits mailing list