[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 44d9df6cf73e3beafd0b5e0736ae3d02269a9b36
Author: Zack Weinberg <zackw@xxxxxxxxx>
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;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits