mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
mbedtls: make style
This commit is contained in:
parent
6324e2e746
commit
b1d6eaf2f7
177 changed files with 37224 additions and 41821 deletions
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
static const char * const features[] = {
|
||||
static const char *const features[] = {
|
||||
#if defined(MBEDTLS_VERSION_FEATURES)
|
||||
#if defined(MBEDTLS_HAVE_ASM)
|
||||
"MBEDTLS_HAVE_ASM",
|
||||
|
@ -844,23 +844,21 @@ static const char * const features[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
int mbedtls_version_check_feature( const char *feature )
|
||||
{
|
||||
const char * const *idx = features;
|
||||
int mbedtls_version_check_feature(const char *feature) {
|
||||
const char *const *idx = features;
|
||||
|
||||
if( *idx == NULL )
|
||||
return( -2 );
|
||||
if (*idx == NULL)
|
||||
return (-2);
|
||||
|
||||
if( feature == NULL )
|
||||
return( -1 );
|
||||
if (feature == NULL)
|
||||
return (-1);
|
||||
|
||||
while( *idx != NULL )
|
||||
{
|
||||
if( !strcmp( *idx, feature ) )
|
||||
return( 0 );
|
||||
while (*idx != NULL) {
|
||||
if (!strcmp(*idx, feature))
|
||||
return (0);
|
||||
idx++;
|
||||
}
|
||||
return( -1 );
|
||||
return (-1);
|
||||
}
|
||||
|
||||
#endif /* MBEDTLS_VERSION_C */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue