mirror of
https://github.com/nmap/nmap.git
synced 2026-01-20 13:19:01 +00:00
hostexp[i] is a nicer way to write *(hostexp + i).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user