mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-10-31 03:30:35 -04:00 
			
		
		
		
	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:
		
							parent
							
								
									dc6d838a73
								
							
						
					
					
						commit
						01fd875b32
					
				| @ -64,7 +64,7 @@ typedef struct | |||||||
|     uintptr_t transient_data; |     uintptr_t transient_data; | ||||||
| } psa_drv_se_internal_context_t; | } 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; |     psa_key_lifetime_t lifetime; | ||||||
|     const psa_drv_se_t *methods; |     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_internal_context_t internal; | ||||||
|         psa_drv_se_context_t context; |         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]; | static psa_se_drv_table_entry_t driver_table[PSA_MAX_SE_DRIVERS]; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Gilles Peskine
						Gilles Peskine