Strict C99: Don't repeat the typedef for psa_se_drv_table_entry_t

GCC and Clang accept
```
typedef struct foo foo_t;
typedef struct foo { ... } foo_t;
```
But this is not valid ISO C due to the redefinition of `foo_t`.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2020-04-14 19:31:52 +02:00
parent dc6d838a73
commit 01fd875b32

View File

@ -64,7 +64,7 @@ typedef struct
uintptr_t transient_data;
} psa_drv_se_internal_context_t;
typedef struct psa_se_drv_table_entry_s
struct psa_se_drv_table_entry_s
{
psa_key_lifetime_t lifetime;
const psa_drv_se_t *methods;
@ -73,7 +73,7 @@ typedef struct psa_se_drv_table_entry_s
psa_drv_se_internal_context_t internal;
psa_drv_se_context_t context;
};
} psa_se_drv_table_entry_t;
};
static psa_se_drv_table_entry_t driver_table[PSA_MAX_SE_DRIVERS];