From 309c9aed985d4c7f92454c6c4a1462024ecbdc1d Mon Sep 17 00:00:00 2001 From: TapTap Date: Tue, 22 Sep 2026 16:46:23 +0200 Subject: [PATCH] refactor: const-correct dir/root locals in progress itemize --- src/client/client_report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/client_report.c b/src/client/client_report.c index 2cbe5df..cb787c4 100644 --- a/src/client/client_report.c +++ b/src/client/client_report.c @@ -521,7 +521,7 @@ static void client_progress_emit_ancestors(const Config* config, const char* rel if (key != NULL && array_list_add(g_progress_emitted_keys, key)) { str_hash_set_insert_ref(&g_progress_emitted, key); if (g_change_dirs_active) { - File* dir = progress_dir_lookup(prefix); + const File* dir = progress_dir_lookup(prefix); if (dir != NULL) change_emit_dir_sent(config, dir); } else { @@ -603,7 +603,7 @@ void client_progress_begin(const Config* config) { -i/--out-format it is the root change line (`.d..t...... ./`); otherwise it is the plain --info=name / --progress name line. */ if (g_change_dirs_active) { - File* root = progress_dir_lookup(""); + const File* root = progress_dir_lookup(""); if (root != NULL) change_emit_dir_sent(config, root); } else {