]> git.puffer.fish Git - mirror/frr.git/commitdiff
*: assorted warning fixes
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 21 Apr 2015 08:46:13 +0000 (10:46 +0200)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 26 May 2016 00:38:32 +0000 (20:38 -0400)
A few warnings slipped through the cracks...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
ospf6d/ospf6_lsa.c
pimd/pim_int.c

index 3185aa6f798ceda06efb6c552f2a2b94750c9c25..2471f6c5962eafed9633462b2939c8b5562ae2bb 100644 (file)
@@ -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];
     }
index 2ff1a116e8100056aca1b9856a4f612ff279d642..0bdd772ff3adf714c10e5ab516dea0b7ec1c5729 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <string.h>
 #include <netinet/in.h>
+#include <arpa/inet.h>
 
 #include "pim_int.h"