Apply clang formatting.
Executed with:
`find . -regextype posix-egrep -regex ".*\.([hc]|fmt|function)" | xargs -L1 clang-format-12 -i`
Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
diff --git a/scripts/data_files/version_features.fmt b/scripts/data_files/version_features.fmt
index e572c5e..cac6ac7 100644
--- a/scripts/data_files/version_features.fmt
+++ b/scripts/data_files/version_features.fmt
@@ -21,34 +21,33 @@
#if defined(MBEDTLS_VERSION_C)
-#include "mbedtls/version.h"
+# include "mbedtls/version.h"
-#include <string.h>
+# include <string.h>
-static const char * const features[] = {
-#if defined(MBEDTLS_VERSION_FEATURES)
-FEATURE_DEFINES
-#endif /* MBEDTLS_VERSION_FEATURES */
- NULL
+static const char *const features[] = {
+# if defined(MBEDTLS_VERSION_FEATURES)
+ FEATURE_DEFINES
+# endif /* MBEDTLS_VERSION_FEATURES */
+ NULL
};
-int mbedtls_version_check_feature( const char *feature )
+int mbedtls_version_check_feature(const char *feature)
{
- const char * const *idx = features;
+ 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 */