fix compiler warnings: -Wunused (part2)

This commit is contained in:
[anp/hsw]
2024-08-16 19:31:16 +07:00
committed by bol-van
parent c38067b255
commit aaea80a97c
6 changed files with 1 additions and 9 deletions

View File

@@ -15,7 +15,6 @@ void tamper_out(t_ctrack *ctrack, uint8_t *segment,size_t segment_buffer_size,si
size_t method_len = 0, pos;
const char *method;
bool bBypass = false, bHaveHost = false, bHostExcluded = false;
char bRemovedHostSpace = 0;
char *pc, Host[256];
DBGPRINT("tamper_out")
@@ -119,7 +118,6 @@ void tamper_out(t_ctrack *ctrack, uint8_t *segment,size_t segment_buffer_size,si
VPRINT("Removing space before host name at pos %zu", pos)
memmove(p - 1, p, *size - pos);
(*size)--; // block will shrink by 1 byte
bRemovedHostSpace = 1;
}
if (params.hostcase && HttpFindHost(&pHost,segment,*size))
{

View File

@@ -850,7 +850,6 @@ static bool find_listen_addr(struct sockaddr_storage *salisten, const char *bind
{
struct ifaddrs *addrs,*a;
bool found=false;
bool bindll_want = bindll==prefer || bindll==force;
if (getifaddrs(&addrs)<0)
return false;

View File

@@ -876,10 +876,7 @@ static bool handle_proxy_mode(tproxy_conn_t *conn, struct tailhead *conn_list)
break;
case S5_ATYP_DOM:
{
struct addrinfo *ai,hints;
int r;
uint16_t port;
char sport[6];
if (params.no_resolve)
{