1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

const all the things!

This commit is contained in:
dmiller
2021-04-23 20:37:41 +00:00
parent 1717b4a9a9
commit 1fd272f8dd
19 changed files with 215 additions and 219 deletions

View File

@@ -772,9 +772,9 @@ const char *mergeFPs(FingerPrint *FPs[], int numFPs, bool isGoodFP,
}
}
const char *fp2ascii(FingerPrint *FP) {
const char *fp2ascii(const FingerPrint *FP) {
static char str[2048];
std::vector<FingerTest>::iterator iter;
std::vector<FingerTest>::const_iterator iter;
char *p = str;
if (!FP)
@@ -868,7 +868,7 @@ static void parse_cpeline(FingerPrint *FP, char *thisline, int lineno) {
which some partial fingerpritns are OK. */
/* This function is not currently used by Nmap, but it is present here because
it is used by fingerprint utilities that link with Nmap object files. */
FingerPrint *parse_single_fingerprint(char *fprint_orig) {
FingerPrint *parse_single_fingerprint(const char *fprint_orig) {
int lineno = 0;
char *p, *q;
char *thisline, *nextline;