From: Zbigniew Jędrzejewski-Szmek Date: Sun, 19 Jul 2020 09:05:44 +0000 (+0200) Subject: homectl: fix warning about unused function X-Git-Tag: v246-rc2~23^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7cbb7d62c6ca4902297d594e8a78d5a12a834ebe;p=thirdparty%2Fsystemd.git homectl: fix warning about unused function ../src/home/homectl-pkcs11.c:19:13: warning: ‘pkcs11_callback_data_release’ defined but not used [-Wunused-function] 19 | static void pkcs11_callback_data_release(struct pkcs11_callback_data *data) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- diff --git a/src/home/homectl-pkcs11.c b/src/home/homectl-pkcs11.c index 830aafaab14..f4253ed7bf2 100644 --- a/src/home/homectl-pkcs11.c +++ b/src/home/homectl-pkcs11.c @@ -16,12 +16,12 @@ struct pkcs11_callback_data { X509 *cert; }; +#if HAVE_P11KIT static void pkcs11_callback_data_release(struct pkcs11_callback_data *data) { erase_and_free(data->pin_used); X509_free(data->cert); } -#if HAVE_P11KIT static int pkcs11_callback( CK_FUNCTION_LIST *m, CK_SESSION_HANDLE session,