Browse Source

acl: remove unused 'n' var

pull/1620/head
Daniel 7 years ago
committed by Max Lv
parent
commit
ac974ecf82
1 changed files with 1 additions and 2 deletions
  1. 3
      src/acl.c

3
src/acl.c

@ -120,12 +120,11 @@ update_block_list(char *addr, int err_level)
static void
parse_addr_cidr(const char *str, char *host, int *cidr)
{
int ret = -1, n = 0;
int ret = -1;
char *pch;
pch = strchr(str, '/');
while (pch != NULL) {
n++;
ret = pch - str;
pch = strchr(pch + 1, '/');
}

Loading…
Cancel
Save