[debug] Make the hexdump parameter const

This way it can be used from values coming TLVP_VAL.
This commit is contained in:
Holger Hans Peter Freyther 2009-08-20 13:16:26 +02:00
parent 5859de86de
commit e78074eb07
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;