From b5c6d48c872b4b0cffe18b64c3092204a6209bbc Mon Sep 17 00:00:00 2001 From: fyodor Date: Tue, 4 Jul 2006 23:23:03 +0000 Subject: [PATCH] fix minor compilation bug and unused variable --- portlist.h | 2 +- scan_engine.cc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/portlist.h b/portlist.h index 321d3ffba..8fc22de40 100644 --- a/portlist.h +++ b/portlist.h @@ -269,7 +269,7 @@ class PortList { * must be called before any PortList object will be created. */ static void initializePortMap(int protocol, u16 *ports, int portcount); /* Free memory used by port_map. It should be done somewhere before quitting*/ - static void PortList::freePortMap(); + static void freePortMap(); /* Add a new port to this list. If the state has changed, it is OK to call this function to effect the change */ diff --git a/scan_engine.cc b/scan_engine.cc index eb16c29fd..f80a495dd 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -3631,7 +3631,6 @@ void pos_scan(Target *target, u16 *portarray, int numports, stype scantype) { struct timeval now; struct connectsockinfo csi; struct rpcscaninfo rsi; - char hostname[1200]; unsigned long j; struct serviceDeductions sd; bool doingOpenFiltered = false;