diff --git a/src/bin/zfs-tpm1x-clear-key.cpp b/src/bin/zfs-tpm1x-clear-key.cpp index 4770d85..6fdf035 100644 --- a/src/bin/zfs-tpm1x-clear-key.cpp +++ b/src/bin/zfs-tpm1x-clear-key.cpp @@ -8,6 +8,5 @@ int main(int argc, char ** argv) { - return do_clear_main( - argc, argv, THIS_BACKEND, [](auto, auto) { return 0; }, [] { return 0; }); + return do_clear_main(argc, argv, THIS_BACKEND, [](auto, auto) { return 0; }, [] { return 0; }); } diff --git a/src/fd.cpp b/src/fd.cpp index 841b93b..6265f88 100644 --- a/src/fd.cpp +++ b/src/fd.cpp @@ -133,7 +133,7 @@ static int get_key_material_raw(const char * whom, bool again, bool newkey, uint if(from_tty) { // Handle SIGINT and ignore SIGSTP. // This is necessary to restore the state of the terminal. - struct sigaction act {}; + struct sigaction act{}; sigemptyset(&act.sa_mask); caught_interrupt = 0; diff --git a/src/main.hpp b/src/main.hpp index 123e130..0273be9 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -64,8 +64,7 @@ static int do_bare_main( } template -static int do_main( - int argc, char ** argv, const char * getoptions, const char * usage, G && getoptfn, M && main, V && validate = [] { return 0; }) { +static int do_main(int argc, char ** argv, const char * getoptions, const char * usage, G && getoptfn, M && main, V && validate = [] { return 0; }) { return do_bare_main( // as-in argument in a usage string argc, argv, getoptions, usage, gettext_noop("dataset"), getoptfn, diff --git a/src/tpm1x.hpp b/src/tpm1x.hpp index fb26110..d1b26d3 100644 --- a/src/tpm1x.hpp +++ b/src/tpm1x.hpp @@ -32,7 +32,6 @@ template int with_tpm1x_session(F && func) { mlockall(MCL_CURRENT | MCL_FUTURE); - TSS_HCONTEXT ctx{}; // All memory lives as long as this does TRY_TPM1X("create TPM context", Tspi_Context_Create(&ctx)); diff --git a/src/tpm2.hpp b/src/tpm2.hpp index 0923097..b92095a 100644 --- a/src/tpm2.hpp +++ b/src/tpm2.hpp @@ -6,10 +6,10 @@ #include "common.hpp" +#include #include #include #include -#include #define TRY_TPM2(what, ...) TRY_GENERIC(what, , != TPM2_RC_SUCCESS, _try_ret, __LINE__, Tss2_RC_Decode, __VA_ARGS__)