Skip to content

Commit

Permalink
++i -> i++
Browse files Browse the repository at this point in the history
  • Loading branch information
wwalexander authored Mar 12, 2018
1 parent 3e10378 commit 87bb820
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hostsblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ int get_domain(char *rule, char *domain)
case DOMAIN_ALNUM:
if (isalnum(*rule)) {
domain[i] = *rule;
++i;
i++;
state = DOMAIN_ALNUM;
break;
}
switch (*rule) {
case '-':
domain[i] = *rule;
++i;
i++;
state = DOMAIN_HYPHEN;
break;
case '.':
domain[i] = *rule;
++i;
i++;
state = DOMAIN_PERIOD;
break;
case '^':
Expand All @@ -80,7 +80,7 @@ int get_domain(char *rule, char *domain)
}
if (*rule == '-') {
domain[i] = *rule;
++i;
i++;
state = DOMAIN_HYPHEN;
} else {
return 1;
Expand All @@ -89,7 +89,7 @@ int get_domain(char *rule, char *domain)
case DOMAIN_PERIOD:
if (isalnum(*rule)) {
domain[i] = *rule;
++i;
i++;
state = DOMAIN_ALNUM;
} else {
return 1;
Expand Down

0 comments on commit 87bb820

Please sign in to comment.