mbedtls: make style

This commit is contained in:
Philippe Teuwen 2021-05-14 11:00:46 +02:00
commit b1d6eaf2f7
177 changed files with 37224 additions and 41821 deletions

View file

@ -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 */