summaryrefslogtreecommitdiff
path: root/src/cache/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache/handlers')
-rw-r--r--src/cache/handlers/http.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cache/handlers/http.c b/src/cache/handlers/http.c
index 3bbb751..b34e4ba 100644
--- a/src/cache/handlers/http.c
+++ b/src/cache/handlers/http.c
@@ -1,8 +1,7 @@
-#include <al/random.h>
#include <al/log.h>
#include "../backings/memory.h"
-#include "../backings/file.h"
+//#include "../backings/file.h"
#include "../threaded_waits.h"
#include "../wait.h"
@@ -41,7 +40,7 @@ static void http_callback(void *userdata, u8 op, u8 *buf, void *opaque)
}
case NNWT_HTTP_CONTENT_LENGTH: {
curl_off_t length = *(curl_off_t *)opaque;
- al_log_debug("cache_handler_http", "Content-Length: %lld.", length);
+ al_log_debug("cache_handler_http", "Content-Length: %"CURL_FORMAT_CURL_OFF_T".", length);
cch_entry_set_size(http->handler.entry, length);
cch_threaded_waits_signal_any(&http->handler);
break;