*: assorted warning fixes
A few warnings slipped through the cracks...
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c
index b4348f4..3f008d3 100644
--- a/ospf6d/ospf6_lsa.c
+++ b/ospf6d/ospf6_lsa.c
@@ -807,8 +807,8 @@
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 2ff1a11..0bdd772 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"