Remove bogus variable to unbreak build on gcc10

This commit is contained in:
Jakub Jelen 2020-02-10 15:42:52 +01:00
parent e4be071f7c
commit a6eb8a263e
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/lib/token.h b/src/lib/token.h
index eeb193f..6a6ae6c 100644
--- a/src/lib/token.h
+++ b/src/lib/token.h
@@ -14,7 +14,7 @@ typedef struct token_config token_config;
struct token_config {
bool is_initialized; /* token initialization state */
char *tcti; /* token specific tcti config */
-} config;
+};
typedef struct session_table session_table;
typedef struct session_ctx session_ctx;

View File

@ -11,6 +11,7 @@ Source0: https://github.com/tpm2-software/%{name}/releases/download/%{version}%{
Source1: https://github.com/tpm2-software/%{name}/releases/download/%{version}%{?candidate:-%{candidate}}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz.asc
# William Roberts (Bill Roberts) key from pgp.mit.edu
Source2: gpgkey-8E1F50C1.gpg
Patch1: tpm2-pkcs11-1.0.1-gcc10.patch
BuildRequires: gcc
BuildRequires: make
@ -51,6 +52,7 @@ The tools required to setup and configure TPM2 for PKCS#11.
%prep
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%setup -q -n %{name}-%{version}%{?candidate:-%{candidate}}
%patch1 -p1 -b .gcc10
%build