mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Give comparescriptids static scope.
This commit is contained in:
parent
38ad563a8f
commit
5eb62f3169
2 changed files with 13 additions and 19 deletions
28
output.cc
28
output.cc
|
|
@ -447,6 +447,19 @@ std::string protect_xml(const std::string s) {
|
|||
return escape_for_screen(s);
|
||||
}
|
||||
|
||||
/* This is a helper function to determine the ordering of the script results
|
||||
based on their id. */
|
||||
static bool comparescriptids(ScriptResult first, ScriptResult second) {
|
||||
//Pull the two id fields out for comparison
|
||||
std::string firstid(first.get_id());
|
||||
std::string secondid(second.get_id());
|
||||
|
||||
if (firstid < secondid)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
static char *formatScriptOutput(ScriptResult sr) {
|
||||
std::vector<std::string> lines;
|
||||
|
||||
|
|
@ -2612,18 +2625,3 @@ void printdatafilepaths() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*This is a helper function to determine the ordering of the script results
|
||||
based on their id */
|
||||
bool comparescriptids(ScriptResult first, ScriptResult second){
|
||||
//Pull the two id fields out for comparison
|
||||
std::string firstid(first.get_id());
|
||||
std::string secondid(second.get_id());
|
||||
|
||||
if (firstid < secondid)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
4
output.h
4
output.h
|
|
@ -253,8 +253,4 @@ void printfinaloutput();
|
|||
were found. */
|
||||
void printdatafilepaths();
|
||||
|
||||
/*This is a helper function to determine the ordering of the script results
|
||||
based on their id */
|
||||
bool comparescriptids(ScriptResult first, ScriptResult second);
|
||||
|
||||
#endif /* OUTPUT_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue