fix compiler warnings: -Wunused

This commit is contained in:
[anp/hsw]
2024-08-16 19:12:43 +07:00
committed by bol-van
parent aaea80a97c
commit 5553a7da45
4 changed files with 2 additions and 4 deletions

View File

@@ -183,7 +183,6 @@ void tamper_out(t_ctrack *ctrack, uint8_t *segment,size_t segment_buffer_size,si
else if (IsTLSClientHello(segment,*size,false))
{
size_t tpos=0,spos=0;
const uint8_t *ext;
if (!ctrack->l7proto) ctrack->l7proto=TLS;

View File

@@ -336,7 +336,7 @@ static bool proxy_remote_conn_ack(tproxy_conn_t *conn, int sock_err)
//Returns -1 if something fails, >0 on success (socket fd).
static int connect_remote(const struct sockaddr *remote_addr, bool bApplyConnectionFooling)
{
int remote_fd = 0, yes = 1, no = 0, v;
int remote_fd = 0, yes = 1, no = 0;
if((remote_fd = socket(remote_addr->sa_family, SOCK_STREAM, 0)) < 0)