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

Make string argument to nmap_hexdump a const to match nbase.

This commit is contained in:
dmiller
2020-01-13 17:14:44 +00:00
parent 30110f911e
commit dcf4aa9f78
2 changed files with 2 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ int wildtest(char *wild, char *test) {
}
/* Wrapper for nbase function hexdump. */
void nmap_hexdump(unsigned char *cp, unsigned int length) {
void nmap_hexdump(const unsigned char *cp, unsigned int length) {
char *string = NULL;
string = hexdump((u8*) cp, length);

View File

@@ -170,7 +170,7 @@ template<class T> T box(T bmin, T bmax, T bnum) {
int wildtest(char *wild, char *test);
void nmap_hexdump(unsigned char *cp, unsigned int length);
void nmap_hexdump(const unsigned char *cp, unsigned int length);
void genfry(unsigned char *arr, int elem_sz, int num_elem);
void shortfry(unsigned short *arr, int num_elem);