From: Frantisek Sumsal Date: Tue, 26 Dec 2023 20:24:14 +0000 (+0100) Subject: tpm2-util: declare the cleanup attribute first X-Git-Tag: v256-rc1~1379^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=321e64dc670699f5bbf6afe57678da795a674f7d;p=thirdparty%2Fsystemd.git tpm2-util: declare the cleanup attribute first As we do everywhere else (apart from it being incosistent, the switched order also makes Coccinelle unhappy). --- diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c index 2a75db572dd..80a0d5f2dc6 100644 --- a/src/shared/tpm2-util.c +++ b/src/shared/tpm2-util.c @@ -7569,7 +7569,7 @@ int tpm2_util_pbkdf2_hmac_sha256(const void *pass, size_t saltlen, uint8_t ret_key[static SHA256_DIGEST_SIZE]) { - uint8_t _cleanup_(erase_and_freep) *buffer = NULL; + _cleanup_(erase_and_freep) uint8_t *buffer = NULL; uint8_t u[SHA256_DIGEST_SIZE]; /* To keep this simple, since derived KeyLen (dkLen in docs)