ratequeue: Add some missing includes.
[ashd.git] / src / ratequeue.c
index 6d654c9..21d6ec3 100644 (file)
@@ -25,6 +25,8 @@
 #include <signal.h>
 #include <assert.h>
 #include <sys/poll.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
 #include <arpa/inet.h>
 
 #ifdef HAVE_CONFIG_H
@@ -151,7 +153,7 @@ static const char *formatsrc(const struct source *src)
 
 static void rehash(int nlen)
 {
-    int i, o, n, m, pl, nl;
+    unsigned int i, o, n, m, pl, nl;
     struct bucket **new, **old;
     
     old = buckets;