Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eadmaster authored and eadmaster committed Mar 19, 2021
1 parent c34612d commit a8aaab7
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tasks/task_patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,28 +827,6 @@ bool patch_content(
patch_index++;
}

/* try to patch "*.ipX" */
patch_index = 0;
name_ips_indexed[name_ips_len] = '\0';
name_bps_indexed[name_bps_len] = '\0';
name_ups_indexed[name_ups_len] = '\0';
while (patch_index < 10)
{
char index_char = '0' + patch_index;

name_ips_indexed[name_ips_len] - 1 = index_char;
name_bps_indexed[name_bps_len] - 1 = index_char;
name_ups_indexed[name_ups_len] - 1 = index_char;

if ( !try_ips_patch(allow_ips, name_ips_indexed, buf, size)
&& !try_bps_patch(allow_bps, name_bps_indexed, buf, size)
&& !try_ups_patch(allow_ups, name_ups_indexed, buf, size))
break;

patch_index++;
}


free(name_ips_indexed);
free(name_bps_indexed);
free(name_ups_indexed);
Expand Down

0 comments on commit a8aaab7

Please sign in to comment.