lib: Fixup a compiler warning on netbsd

This code has a compiler warning on some oddball platforms

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2015-11-20 06:59:12 -08:00
parent 0b560feb23
commit b78a42c24d

View File

@ -1021,7 +1021,7 @@ zlog_hexdump (void *mem, unsigned int len) {
if (j >= len) /* end of block, not really printing */
s += sprintf(s, " ");
else if(isprint(((char*)mem)[j])) /* printable char */
else if(isprint((int)((char*)mem)[j])) /* printable char */
s += sprintf(s, "%c", 0xFF & ((char*)mem)[j]);
else /* other char */