From d8f00aca2090e532247fe0652a1dfca15d2fb60f Mon Sep 17 00:00:00 2001 From: Eshan Kelkar Date: Tue, 20 Aug 2024 14:10:08 +0530 Subject: [PATCH] priv.h, torture_misc.c: Fix clang-format formatting complaints Fixed include order and formatting issues regarding the 80 char column width limit Signed-off-by: Eshan Kelkar Reviewed-by: Jakub Jelen --- include/libssh/priv.h | 2 +- tests/unittests/torture_misc.c | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/include/libssh/priv.h b/include/libssh/priv.h index e164154b..2f15734d 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -30,10 +30,10 @@ #define _LIBSSH_PRIV_H #include +#include #include #include #include -#include #include #if !defined(HAVE_STRTOULL) diff --git a/tests/unittests/torture_misc.c b/tests/unittests/torture_misc.c index d2294793..b47c3c6b 100644 --- a/tests/unittests/torture_misc.c +++ b/tests/unittests/torture_misc.c @@ -1256,9 +1256,15 @@ int torture_run_tests(void) { #else cmocka_unit_test(torture_path_expand_tilde_unix), #endif - cmocka_unit_test_setup_teardown(torture_path_expand_escape, setup, teardown), - cmocka_unit_test_setup_teardown(torture_path_expand_known_hosts, setup, teardown), - cmocka_unit_test_setup_teardown(torture_path_expand_percent, setup, teardown), + cmocka_unit_test_setup_teardown(torture_path_expand_escape, + setup, + teardown), + cmocka_unit_test_setup_teardown(torture_path_expand_known_hosts, + setup, + teardown), + cmocka_unit_test_setup_teardown(torture_path_expand_percent, + setup, + teardown), cmocka_unit_test(torture_timeout_elapsed), cmocka_unit_test(torture_timeout_update), cmocka_unit_test(torture_ssh_analyze_banner),