From: Donald Sharp Date: Fri, 20 Nov 2015 14:59:12 +0000 (-0800) Subject: lib: Fixup a compiler warning on netbsd X-Git-Tag: frr-2.0-rc1~1191^2^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b78a42c24d119356e231052a526bf7e05d0d0c9f;p=mirror%2Ffrr.git lib: Fixup a compiler warning on netbsd This code has a compiler warning on some oddball platforms Signed-off-by: Donald Sharp --- diff --git a/lib/log.c b/lib/log.c index 3fd62d59cf..13fbc00317 100644 --- a/lib/log.c +++ b/lib/log.c @@ -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 */