Implement afs events.
[paraslash.git] / http_send.c
index e7a9ae2bc50c201c52cf0d3b25f896ecec515dd9..7ee3e55646aedb3715521f1d195f59887e26e874 100644 (file)
@@ -6,8 +6,12 @@
 
 /** \file http_send.c paraslash's http sender */
 
+#include <sys/types.h>
+#include <dirent.h>
 
+#include "para.h"
 #include "server.cmdline.h"
+#include "afh.h"
 #include "server.h"
 #include "http.h"
 #include "vss.h"
@@ -460,7 +464,7 @@ static void init_access_control_list(void)
                if (!p)
                        goto err;
                *p = '\0';
-               if (!inet_aton(arg, &scd.addr))
+               if (!inet_pton(AF_INET, arg, &scd.addr))
                        goto err;
                scd.netmask = atoi(++p);
                if (scd.netmask < 0 || scd.netmask > 32)