[debug] Make the hexdump parameter const
This way it can be used from values coming TLVP_VAL.
This commit is contained in:
parent
5859de86de
commit
e78074eb07
|
@ -30,7 +30,7 @@
|
|||
|
||||
#define static_assert(exp, name) typedef int dummy##name [(exp) ? 1 : -1];
|
||||
|
||||
char *hexdump(unsigned char *buf, int len);
|
||||
char *hexdump(const unsigned char *buf, int len);
|
||||
void debugp(unsigned int subsys, char *file, int line, int cont, const char *format, ...);
|
||||
void debug_parse_category_mask(const char* mask);
|
||||
void debug_use_color(int use_color);
|
||||
|
|
|
@ -143,7 +143,7 @@ void debugp(unsigned int subsys, char *file, int line, int cont, const char *for
|
|||
|
||||
static char hexd_buff[4096];
|
||||
|
||||
char *hexdump(unsigned char *buf, int len)
|
||||
char *hexdump(const unsigned char *buf, int len)
|
||||
{
|
||||
int i;
|
||||
char *cur = hexd_buff;
|
||||
|
|
Loading…
Reference in New Issue