summaryrefslogtreecommitdiff
path: root/src/cache/handlers
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-01-25 14:42:33 -0500
committerAndrew Opalach <andrew@akon.city> 2025-01-25 14:42:33 -0500
commit390515d40c115217d27be3f74c38d4d3eefde02b (patch)
treef670365698e845055ff13398076f71e4a5e8206f /src/cache/handlers
parentf638237a6b4f3d3edf9bdd995c15df537f8d7e7c (diff)
downloadcamu-390515d40c115217d27be3f74c38d4d3eefde02b.tar.gz
camu-390515d40c115217d27be3f74c38d4d3eefde02b.tar.bz2
camu-390515d40c115217d27be3f74c38d4d3eefde02b.zip
Discard packet_stream queue on demote
- Cleanup some comments. Signed-off-by: Andrew Opalach <andrew@akon.city>
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;