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:
2
utils.cc
2
utils.cc
@@ -185,7 +185,7 @@ int wildtest(char *wild, char *test) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Wrapper for nbase function hexdump. */
|
/* 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;
|
char *string = NULL;
|
||||||
|
|
||||||
string = hexdump((u8*) cp, length);
|
string = hexdump((u8*) cp, length);
|
||||||
|
|||||||
2
utils.h
2
utils.h
@@ -170,7 +170,7 @@ template<class T> T box(T bmin, T bmax, T bnum) {
|
|||||||
|
|
||||||
int wildtest(char *wild, char *test);
|
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 genfry(unsigned char *arr, int elem_sz, int num_elem);
|
||||||
void shortfry(unsigned short *arr, int num_elem);
|
void shortfry(unsigned short *arr, int num_elem);
|
||||||
|
|||||||
Reference in New Issue
Block a user