Browse Source

*: assorted warning fixes

A few warnings slipped through the cracks...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
David Lamparter 4 years ago
parent
commit
e691c3bb97
2 changed files with 3 additions and 2 deletions
  1. 2 2
      ospf6d/ospf6_lsa.c
  2. 1 0
      pimd/pim_int.c

+ 2 - 2
ospf6d/ospf6_lsa.c

@@ -807,8 +807,8 @@ ospf6_lsa_handler_name (struct ospf6_lsa_handler *h)
 
   for (i = 0; i < MIN (size, sizeof (buf)); i++)
     {
-      if (! islower (h->name[i]))
-        buf[i] = tolower (h->name[i]);
+      if (! islower ((unsigned char)h->name[i]))
+        buf[i] = tolower ((unsigned char)h->name[i]);
       else
         buf[i] = h->name[i];
     }

+ 1 - 0
pimd/pim_int.c

@@ -22,6 +22,7 @@
 
 #include <string.h>
 #include <netinet/in.h>
+#include <arpa/inet.h>
 
 #include "pim_int.h"