Browse Source

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>
Donald Sharp 3 years ago
parent
commit
76764ddcf5
2 changed files with 3 additions and 1 deletions
  1. 2 0
      isisd/isis_bpf.c
  2. 1 1
      lib/log.c

+ 2 - 0
isisd/isis_bpf.c

@@ -348,6 +348,8 @@ isis_send_pdu_bcast (struct isis_circuit *circuit, int level)
         return ISIS_WARNING;
       return ISIS_ERROR;
     }
+
+  return ISIS_OK;
 }
 
 int

+ 1 - 1
lib/log.c

@@ -1036,7 +1036,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 */