Skip to content

Commit eb36238

Browse files
amyangfeirofl0r
authored andcommitted
remove unused variable
1 parent 275e644 commit eb36238

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/core.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,8 @@ int connect_proxy_chain(int sock, ip_type target_ip,
567567
unsigned int offset = 0;
568568
unsigned int alive_count = 0;
569569
unsigned int curr_len = 0;
570-
unsigned int curr_pos = 0;
571570
unsigned int looped = 0; // went back to start of list in RR mode
572-
int rr_loop_max = 14;
571+
unsigned int rr_loop_max = 14;
573572

574573
p3 = &p4;
575574

@@ -606,10 +605,10 @@ int connect_proxy_chain(int sock, ip_type target_ip,
606605

607606
case ROUND_ROBIN_TYPE:
608607
alive_count = calc_alive(pd, proxy_count);
609-
curr_pos = offset = proxychains_proxy_offset;
608+
offset = proxychains_proxy_offset;
610609
if(alive_count < max_chain)
611610
goto error_more;
612-
PDEBUG("1:rr_offset = %d, curr_pos = %d\n", offset, curr_pos);
611+
PDEBUG("1:rr_offset = %d\n", offset);
613612
/* Check from current RR offset til end */
614613
for (;rc != SUCCESS;) {
615614
if (!(p1 = select_proxy(FIFOLY, pd, proxy_count, &offset))) {

0 commit comments

Comments
 (0)