summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-04-21 10:46:13 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-05-25 20:38:32 -0400
commit6b629fe36b46c74d199de17ed90e5638d9105227 (patch)
treea5bf46cc6ccadd8233305ff059621d29dc790a28
parent972db29fe7242c0e4b2c8abfd7407d110ee4dca5 (diff)
*: assorted warning fixes
A few warnings slipped through the cracks... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r--ospf6d/ospf6_lsa.c4
-rw-r--r--pimd/pim_int.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c
index 3185aa6f79..2471f6c596 100644
--- a/ospf6d/ospf6_lsa.c
+++ b/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];
}
diff --git a/pimd/pim_int.c b/pimd/pim_int.c
index 2ff1a116e8..0bdd772ff3 100644
--- a/pimd/pim_int.c
+++ b/pimd/pim_int.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
#include "pim_int.h"