mirror of
https://github.com/nmap/nmap.git
synced 2026-01-24 07:09:01 +00:00
Remove the unused gethostnum static function. I think this was used in
checking responses for weird_responses, which we don't do anymore.
This commit is contained in:
14
targets.cc
14
targets.cc
@@ -105,20 +105,6 @@
|
||||
using namespace std;
|
||||
extern NmapOps o;
|
||||
|
||||
/* Gets the host number (index) of target in the hostbatch array of
|
||||
pointers. Note that the target MUST EXIST in the array or all
|
||||
heck will break loose. */
|
||||
static inline int gethostnum(Target *hostbatch[], Target *target) {
|
||||
int i = 0;
|
||||
do {
|
||||
if (hostbatch[i] == target)
|
||||
return i;
|
||||
} while(++i);
|
||||
|
||||
fatal("fluxx0red");
|
||||
return 0; // Unreached
|
||||
}
|
||||
|
||||
/* Conducts an ARP ping sweep of the given hosts to determine which ones
|
||||
are up on a local ethernet network */
|
||||
static void arpping(Target *hostbatch[], int num_hosts) {
|
||||
|
||||
Reference in New Issue
Block a user