}
void
-zlog_hexdump (void *mem, unsigned int len) {
+zlog_hexdump (const void *mem, unsigned int len) {
unsigned long i = 0;
unsigned int j = 0;
unsigned int columns = 8;
/* print hex data */
if (i < len)
- s += sprintf(s, "%02x ", 0xFF & ((char*)mem)[i]);
+ s += sprintf(s, "%02x ", 0xFF & ((const char*)mem)[i]);
/* end of block, just aligning for ASCII dump */
else
if (j >= len) /* end of block, not really printing */
s += sprintf(s, " ");
- else if(isprint((int)((char*)mem)[j])) /* printable char */
- s += sprintf(s, "%c", 0xFF & ((char*)mem)[j]);
+ else if(isprint((int)((const char *)mem)[j])) /* printable char */
+ s += sprintf(s, "%c", 0xFF & ((const char *)mem)[j]);
else /* other char */
s += sprintf(s, ".");
extern size_t quagga_timestamp(int timestamp_precision /* # subsecond digits */,
char *buf, size_t buflen);
-extern void zlog_hexdump(void *mem, unsigned int len);
+extern void zlog_hexdump(const void *mem, unsigned int len);
/* structure useful for avoiding repeated rendering of the same timestamp */
struct timestamp_control {