isisd, lib: Fix some more compiler warnings
A couple compiler warnings snuck in from the last
round of work being looked at. This cleans them up
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
diff --git a/isisd/isis_bpf.c b/isisd/isis_bpf.c
index fd65608..889b4c3 100644
--- a/isisd/isis_bpf.c
+++ b/isisd/isis_bpf.c
@@ -348,6 +348,8 @@
return ISIS_WARNING;
return ISIS_ERROR;
}
+
+ return ISIS_OK;
}
int
diff --git a/lib/log.c b/lib/log.c
index e376205..0914bf8 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -1036,7 +1036,7 @@
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 */