hostexp[i] is a nicer way to write *(hostexp + i).

This commit is contained in:
david 2012-12-17 22:39:23 +00:00
parent d8dc00e0ed
commit bfead6f4b7

View file

@ -166,9 +166,9 @@ int TargetGroup::parse_expr(const char *target_expr, int af) {
} else
netmask = 32;
resolvedname = hostexp;
for(i=0; *(hostexp + i); i++)
if (isupper((int) (unsigned char) *(hostexp +i)) ||
islower((int) (unsigned char) *(hostexp +i))) {
for(i=0; hostexp[i] != '\0'; i++)
if (isupper((int) (unsigned char) hostexp[i]) ||
islower((int) (unsigned char) hostexp[i])) {
namedhost = 1;
break;
}