mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 12:41:21 +00:00
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:
parent
0b560feb23
commit
b78a42c24d
@ -1021,7 +1021,7 @@ zlog_hexdump (void *mem, unsigned int len) {
|
|||||||
if (j >= len) /* end of block, not really printing */
|
if (j >= len) /* end of block, not really printing */
|
||||||
s += sprintf(s, " ");
|
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]);
|
s += sprintf(s, "%c", 0xFF & ((char*)mem)[j]);
|
||||||
|
|
||||||
else /* other char */
|
else /* other char */
|
||||||
|
Loading…
Reference in New Issue
Block a user