summaryrefslogtreecommitdiff
path: root/tests/gnutls-strcodes.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2023-04-24 12:39:42 +0900
committerDaiki Ueno <ueno@gnu.org>2023-04-24 12:45:46 +0900
commitaa5950abab56b011331ad4331409b6ff8efb8aeb (patch)
treead363fb38e8b65c942876641cda9c76caa13b498 /tests/gnutls-strcodes.c
parent0fe9cb6842d63761718046cc7dd7eb437e6c5163 (diff)
downloadgnutls-aa5950abab56b011331ad4331409b6ff8efb8aeb.tar.gz
build: re-indent code
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'tests/gnutls-strcodes.c')
-rw-r--r--tests/gnutls-strcodes.c39
1 files changed, 18 insertions, 21 deletions
diff --git a/tests/gnutls-strcodes.c b/tests/gnutls-strcodes.c
index 0f1f5efe02..d0fd58038d 100644
--- a/tests/gnutls-strcodes.c
+++ b/tests/gnutls-strcodes.c
@@ -20,7 +20,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdlib.h>
@@ -37,15 +37,13 @@ unsigned _gnutls_ecc_curve_is_supported(gnutls_ecc_curve_t);
* non null value.
*/
-static
-void _check_non_null(int line, int i, const char *val)
+static void _check_non_null(int line, int i, const char *val)
{
if (val == NULL)
fail("issue in line %d, item %d\n", line, i);
}
-static
-void _check_unique_non_null(int line, int i, const char *val)
+static void _check_unique_non_null(int line, int i, const char *val)
{
static char previous_val[128];
@@ -59,8 +57,7 @@ void _check_unique_non_null(int line, int i, const char *val)
snprintf(previous_val, sizeof(previous_val), "%s", val);
}
-static
-void _check_unique(int line, int i, const char *val)
+static void _check_unique(int line, int i, const char *val)
{
static char previous_val[128];
@@ -115,18 +112,18 @@ void doit(void)
check_non_null(gnutls_sec_param_get_name(i));
}
- check_non_null(gnutls_certificate_verification_profile_get_name
- (GNUTLS_PROFILE_VERY_WEAK));
- check_non_null(gnutls_certificate_verification_profile_get_name
- (GNUTLS_PROFILE_LOW));
- check_non_null(gnutls_certificate_verification_profile_get_name
- (GNUTLS_PROFILE_LEGACY));
- check_non_null(gnutls_certificate_verification_profile_get_name
- (GNUTLS_PROFILE_MEDIUM));
- check_non_null(gnutls_certificate_verification_profile_get_name
- (GNUTLS_PROFILE_HIGH));
- check_non_null(gnutls_certificate_verification_profile_get_name
- (GNUTLS_PROFILE_ULTRA));
+ check_non_null(gnutls_certificate_verification_profile_get_name(
+ GNUTLS_PROFILE_VERY_WEAK));
+ check_non_null(gnutls_certificate_verification_profile_get_name(
+ GNUTLS_PROFILE_LOW));
+ check_non_null(gnutls_certificate_verification_profile_get_name(
+ GNUTLS_PROFILE_LEGACY));
+ check_non_null(gnutls_certificate_verification_profile_get_name(
+ GNUTLS_PROFILE_MEDIUM));
+ check_non_null(gnutls_certificate_verification_profile_get_name(
+ GNUTLS_PROFILE_HIGH));
+ check_non_null(gnutls_certificate_verification_profile_get_name(
+ GNUTLS_PROFILE_ULTRA));
for (i = GNUTLS_ECC_CURVE_INVALID + 1; i <= GNUTLS_ECC_CURVE_MAX; i++) {
if (_gnutls_ecc_curve_is_supported(i) == 0)
@@ -134,9 +131,9 @@ void doit(void)
check_unique_non_null(gnutls_ecc_curve_get_name(i));
if (i == GNUTLS_ECC_CURVE_X25519)
- continue; /* no oid yet */
+ continue; /* no oid yet */
if (i == GNUTLS_ECC_CURVE_X448)
- continue; /* no oid yet */
+ continue; /* no oid yet */
check_unique_non_null(gnutls_ecc_curve_get_oid(i));
}