From 390515d40c115217d27be3f74c38d4d3eefde02b Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 25 Jan 2025 14:42:33 -0500 Subject: Discard packet_stream queue on demote - Cleanup some comments. Signed-off-by: Andrew Opalach --- src/cache/handlers/http.c | 5 ++--- src/cache/range.h | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'src/cache') 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 #include #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; diff --git a/src/cache/range.h b/src/cache/range.h index 603117e..9ec1159 100644 --- a/src/cache/range.h +++ b/src/cache/range.h @@ -4,9 +4,9 @@ AL_UNUSED_FUNCTION_PUSH -// TODO: cch_backing_remove_range. -// -// TODO: report overlap, don't unlock in backing_write() and handle fill in handler +// @TODO: +// cch_backing_remove_range(). +// Report overlap, don't unlock in backing_write() and handle fill in handler. static void cch_backing_fill_range(struct cch_backing *backing, off_t index, off_t size) { -- cgit v1.2.3-101-g0448