style: clang-format receiver.c and server.c

This commit is contained in:
2026-09-17 01:23:47 +02:00
parent 6c6f02e5dd
commit 410ba6e992
2 changed files with 6 additions and 7 deletions
+1 -2
View File
@@ -398,8 +398,7 @@ int receiver_process_pending(Config* config, int file_descriptor, const Receiver
--max-delete-capped commit still succeeds and the transfer proceeds; --max-delete-capped commit still succeeds and the transfer proceeds;
the terminal success frame reports the cap. */ the terminal success frame reports the cap. */
size_t deleted = 0; size_t deleted = 0;
DeleteCommitResult deletion = DeleteCommitResult deletion = (config->use_delete || config->delete_missing_args)
(config->use_delete || config->delete_missing_args)
? manifest_delete_all_counted(config, manifest, &deleted) ? manifest_delete_all_counted(config, manifest, &deleted)
: DELETE_COMMIT_OK; : DELETE_COMMIT_OK;
receiver_tally_deleted(sink, deleted); receiver_tally_deleted(sink, deleted);
+3 -3
View File
@@ -975,9 +975,9 @@ void handler(int file_descriptor) {
if (context->deferred_plans) { if (context->deferred_plans) {
/* Defence in depth (the enclosing block already excludes dry-run): a /* Defence in depth (the enclosing block already excludes dry-run): a
-n run never commits a deletion. */ -n run never commits a deletion. */
DeleteCommitResult deletion = config->dry_run ? DELETE_COMMIT_OK DeleteCommitResult deletion =
: delete_plan_session_commit( config->dry_run ? DELETE_COMMIT_OK
context->deferred_plans, config); : delete_plan_session_commit(context->deferred_plans, config);
context->stats.deleted_files += delete_plan_session_deleted(context->deferred_plans); context->stats.deleted_files += delete_plan_session_deleted(context->deferred_plans);
if (deletion == DELETE_COMMIT_ERROR) { if (deletion == DELETE_COMMIT_ERROR) {
transfer_ok = false; transfer_ok = false;