From 1a37d25650ecfe93cf64ca5046f8d98c4852b21e Mon Sep 17 00:00:00 2001 From: david Date: Thu, 19 Nov 2009 16:04:37 +0000 Subject: [PATCH] Change cstringSanityCheck from being a method of Port to a static function. --- portlist.cc | 5 ++--- portlist.h | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/portlist.cc b/portlist.cc index dcf5102c4..17517212b 100644 --- a/portlist.cc +++ b/portlist.cc @@ -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) diff --git a/portlist.h b/portlist.h index a75757e6d..2827d2be7 100644 --- a/portlist.h +++ b/portlist.h @@ -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