Skip to content

Commit

Permalink
Remove NOLUA guards around NewTargets code. This code compiles fine
Browse files Browse the repository at this point in the history
--without-liblua.
  • Loading branch information
david committed Sep 7, 2010
1 parent 23908b4 commit 430a128
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions TargetGroup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@

extern NmapOps o;

#ifndef NOLUA
NewTargets *NewTargets::new_targets;
#endif

TargetGroup::TargetGroup() {
Initialize();
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions TargetGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ class TargetGroup {
};

/* Adding new targets is for NSE scripts */
#ifndef NOLUA
class NewTargets {
public:
NewTargets();
Expand Down Expand Up @@ -218,7 +217,6 @@ class NewTargets {
protected:
static NewTargets *new_targets;
};
#endif

class HostGroupState {
public:
Expand Down

0 comments on commit 430a128

Please sign in to comment.