mirror of
https://github.com/nmap/nmap.git
synced 2026-01-20 13:19:01 +00:00
Remove NOLUA guards around NewTargets code. This code compiles fine
--without-liblua.
This commit is contained in:
@@ -100,9 +100,7 @@
|
||||
|
||||
extern NmapOps o;
|
||||
|
||||
#ifndef NOLUA
|
||||
NewTargets *NewTargets::new_targets;
|
||||
#endif
|
||||
|
||||
TargetGroup::TargetGroup() {
|
||||
Initialize();
|
||||
@@ -567,7 +565,6 @@ const std::list<struct sockaddr_storage> &TargetGroup::get_resolved_addrs(void)
|
||||
return resolvedaddrs;
|
||||
}
|
||||
|
||||
#ifndef NOLUA
|
||||
/* debug level for the adding target is: 3 */
|
||||
NewTargets *NewTargets::get (void) {
|
||||
if (new_targets)
|
||||
@@ -662,7 +659,6 @@ unsigned long NewTargets::insert (const char *target) {
|
||||
|
||||
return new_targets->push(target);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Lookahead is the number of hosts that can be
|
||||
checked (such as ping scanned) in advance. Randomize causes each
|
||||
|
||||
@@ -175,7 +175,6 @@ class TargetGroup {
|
||||
};
|
||||
|
||||
/* Adding new targets is for NSE scripts */
|
||||
#ifndef NOLUA
|
||||
class NewTargets {
|
||||
public:
|
||||
NewTargets();
|
||||
@@ -218,7 +217,6 @@ class NewTargets {
|
||||
protected:
|
||||
static NewTargets *new_targets;
|
||||
};
|
||||
#endif
|
||||
|
||||
class HostGroupState {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user