X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=http_send.c;h=3f03f00b41a943af347c2e5599fde1ff9a3e507d;hp=bbf634100c6de88e95c2e426de5c5a09d4dcfc80;hb=d6af2c473a9f2ae1f582ad44d5ad6eb8bf1ed35a;hpb=2ecabb05dbeb0948e514cdad1bb811d9edf97e2e diff --git a/http_send.c b/http_send.c index bbf63410..3f03f00b 100644 --- a/http_send.c +++ b/http_send.c @@ -6,8 +6,12 @@ /** \file http_send.c paraslash's http sender */ +#include +#include +#include "para.h" #include "server.cmdline.h" +#include "afh.h" #include "server.h" #include "http.h" #include "vss.h" @@ -165,11 +169,11 @@ static void http_send( long unsigned current_chunk, hc->status != HTTP_READY_TO_STREAM) continue; if (hc->status == HTTP_READY_TO_STREAM) { - unsigned hlen; + size_t hlen; char *hbuf = vss_get_header(&hlen); if (hbuf && hlen > 0 && current_chunk) { /* need to send header */ - PARA_INFO_LOG("queueing header: %d\n", hlen); + PARA_INFO_LOG("queueing header: %zu\n", hlen); if (queue_chunk_or_shutdown(hc, -1U, 0) < 0) continue; } else