mirror of
https://github.com/nmap/nmap.git
synced 2026-06-26 03:03:55 +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:
parent
2111c0ab54
commit
138745fda6
1 changed files with 0 additions and 14 deletions
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue