Switch to the new afs.
[paraslash.git] / dccp_send.c
index f61427169e83d5366c1d1509666405573944e504..1ea8de25ed4f63ab622ec12cc6d6f54093bf7401 100644 (file)
  * (C) 2005 Ian McDonald <imcdnzl@gmail.com>
  */
 
+#include <sys/types.h>
+#include <dirent.h>
+
+#include "para.h"
+#include "error.h"
+#include "string.h"
+#include "afh.h"
+#include "afs.h"
 #include "server.h"
 #include "net.h"
 #include "list.h"
 #include "vss.h"
 #include "send.h"
 #include "dccp.h"
-#include "error.h"
-#include "string.h"
 #include "fd.h"
 #include "close_on_fork.h"
 #include "chunk_queue.h"
@@ -182,7 +188,7 @@ static void dccp_send(long unsigned current_chunk,
        struct dccp_client *dc, *tmp;
        int ret;
        char *header_buf;
-       unsigned header_len;
+       size_t header_len;
 
        if (listen_fd < 0 || !len)
                return;