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 static void
parse_addr_cidr(const char *str, char *host, int *cidr) parse_addr_cidr(const char *str, char *host, int *cidr)
{ {
int ret = -1, n = 0;
int ret = -1;
char *pch; char *pch;
pch = strchr(str, '/'); pch = strchr(str, '/');
while (pch != NULL) { while (pch != NULL) {
n++;
ret = pch - str; ret = pch - str;
pch = strchr(pch + 1, '/'); pch = strchr(pch + 1, '/');
} }

Loading…
Cancel
Save