1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 05:09:02 +00:00

Change cstringSanityCheck from being a method of Port to a static

function.
This commit is contained in:
david
2009-11-19 16:04:37 +00:00
parent 07dae5d498
commit 1a37d25650
2 changed files with 2 additions and 5 deletions

View File

@@ -300,9 +300,8 @@ int Port::getServiceDeductions(struct serviceDeductions *sd) {
// one is available and the user should submit it. tunnel must be
// SERVICE_TUNNEL_NULL (normal) or SERVICE_TUNNEL_SSL (means ssl was
// detected and we tried to tunnel through it ).
char* Port::cstringSanityCheck(const char* string, int len) {
char* result;
static char *cstringSanityCheck(const char* string, int len) {
char *result;
int slen;
if(!string)

View File

@@ -199,8 +199,6 @@ class Port {
const char *ostype, const char *devicetype,
const char *extrainfo, const char *fingerprint);
char* cstringSanityCheck(const char* string, int len);
/* Sets the results of an RPC scan. if rpc_status is not
RPC_STATUS_GOOD_PROGRAM, pass 0 for the other args. This function
takes care of setting the port's service and version