From: Lennart Poettering Date: Tue, 24 Oct 2023 21:14:23 +0000 (+0200) Subject: tpm2-util: add line breaks in compound struct init, like we usually do X-Git-Tag: v255-rc1~148 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=980a5aeffab866ab72dd1488ee47be3d280629b8;p=thirdparty%2Fsystemd.git tpm2-util: add line breaks in compound struct init, like we usually do --- diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c index 8d509713561..fc168507ac8 100644 --- a/src/shared/tpm2-util.c +++ b/src/shared/tpm2-util.c @@ -1235,7 +1235,9 @@ int tpm2_get_or_create_srk( return 0; /* 0 → SRK already set up */ /* No SRK, create and persist one */ - TPM2B_PUBLIC template = { .size = sizeof(TPMT_PUBLIC), }; + TPM2B_PUBLIC template = { + .size = sizeof(TPMT_PUBLIC), + }; r = tpm2_get_best_srk_template(c, &template.publicArea); if (r < 0) return log_debug_errno(r, "Could not get best SRK template: %m"); @@ -2758,7 +2760,9 @@ int tpm2_digest_many( if (extend) sha256_process_bytes(digest->buffer, digest->size, &ctx); else { - *digest = (TPM2B_DIGEST){ .size = SHA256_DIGEST_SIZE, }; + *digest = (TPM2B_DIGEST) { + .size = SHA256_DIGEST_SIZE, + }; if (n_data == 0) /* If not extending and no data, return zero hash */ return 0; } @@ -4212,7 +4216,9 @@ int tpm2_unseal(Tpm2Context *c, if (r < 0) return r; } else if (primary_alg != 0) { - TPM2B_PUBLIC template = { .size = sizeof(TPMT_PUBLIC), }; + TPM2B_PUBLIC template = { + .size = sizeof(TPMT_PUBLIC), + }; r = tpm2_get_legacy_template(primary_alg, &template.publicArea); if (r < 0) return log_debug_errno(r, "Could not get legacy template: %m");