From 214e97e115ffc9f9cf56a3576be4bbcab95b07f7 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 28 Aug 2024 08:00:00 +0000 Subject: build: consistently include config.h unconditionally Given that in most places config.h is included unconditionally, there is no point in keeping remaining HAVE_CONFIG_H checks. Public header files do not use config.h and therefore are not affected by this change anyway. --- tests/tst-dlopen.c | 4 +--- tests/tst-pam_acct_mgmt.c | 2 -- tests/tst-pam_authenticate.c | 2 -- tests/tst-pam_chauthtok.c | 2 -- tests/tst-pam_close_session.c | 2 -- tests/tst-pam_end.c | 2 -- tests/tst-pam_fail_delay.c | 2 -- tests/tst-pam_get_item.c | 2 -- tests/tst-pam_get_user.c | 4 ---- tests/tst-pam_getenvlist.c | 2 -- tests/tst-pam_mkargv.c | 4 +--- tests/tst-pam_open_session.c | 2 -- tests/tst-pam_set_item.c | 2 -- tests/tst-pam_setcred.c | 2 -- tests/tst-pam_start.c | 2 -- tests/tst-pam_start_confdir.c | 2 -- 16 files changed, 2 insertions(+), 36 deletions(-) (limited to 'tests') diff --git a/tests/tst-dlopen.c b/tests/tst-dlopen.c index 00e14543..cba3e9a8 100644 --- a/tests/tst-dlopen.c +++ b/tests/tst-dlopen.c @@ -7,9 +7,7 @@ (at your option) any later version. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/tests/tst-pam_acct_mgmt.c b/tests/tst-pam_acct_mgmt.c index 1e8c4b4d..b355a97b 100644 --- a/tests/tst-pam_acct_mgmt.c +++ b/tests/tst-pam_acct_mgmt.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_authenticate.c b/tests/tst-pam_authenticate.c index 1d43ec3a..366a4b19 100644 --- a/tests/tst-pam_authenticate.c +++ b/tests/tst-pam_authenticate.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_chauthtok.c b/tests/tst-pam_chauthtok.c index 37ed83d3..5cf9a7e3 100644 --- a/tests/tst-pam_chauthtok.c +++ b/tests/tst-pam_chauthtok.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_close_session.c b/tests/tst-pam_close_session.c index 86187bb9..9954b75d 100644 --- a/tests/tst-pam_close_session.c +++ b/tests/tst-pam_close_session.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_end.c b/tests/tst-pam_end.c index d79df7c6..902ae717 100644 --- a/tests/tst-pam_end.c +++ b/tests/tst-pam_end.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_fail_delay.c b/tests/tst-pam_fail_delay.c index f166ec0d..0126af93 100644 --- a/tests/tst-pam_fail_delay.c +++ b/tests/tst-pam_fail_delay.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_get_item.c b/tests/tst-pam_get_item.c index c6e3d9fa..cfb2a326 100644 --- a/tests/tst-pam_get_item.c +++ b/tests/tst-pam_get_item.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_get_user.c b/tests/tst-pam_get_user.c index 16f31236..916c6cc6 100644 --- a/tests/tst-pam_get_user.c +++ b/tests/tst-pam_get_user.c @@ -31,10 +31,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -#include -#endif - #include #include diff --git a/tests/tst-pam_getenvlist.c b/tests/tst-pam_getenvlist.c index d6abac91..4e90c0ca 100644 --- a/tests/tst-pam_getenvlist.c +++ b/tests/tst-pam_getenvlist.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_mkargv.c b/tests/tst-pam_mkargv.c index 17a5a854..25d07cc4 100644 --- a/tests/tst-pam_mkargv.c +++ b/tests/tst-pam_mkargv.c @@ -6,9 +6,7 @@ the Free Software Foundation in version 2 of the License. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/tests/tst-pam_open_session.c b/tests/tst-pam_open_session.c index 771ca35c..5ff91b87 100644 --- a/tests/tst-pam_open_session.c +++ b/tests/tst-pam_open_session.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_set_item.c b/tests/tst-pam_set_item.c index 607fbf28..b7f21fbc 100644 --- a/tests/tst-pam_set_item.c +++ b/tests/tst-pam_set_item.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_setcred.c b/tests/tst-pam_setcred.c index 917d4d05..c878d64f 100644 --- a/tests/tst-pam_setcred.c +++ b/tests/tst-pam_setcred.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_start.c b/tests/tst-pam_start.c index 23af4fe8..728eafe1 100644 --- a/tests/tst-pam_start.c +++ b/tests/tst-pam_start.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include diff --git a/tests/tst-pam_start_confdir.c b/tests/tst-pam_start_confdir.c index b57ea573..cb2c5704 100644 --- a/tests/tst-pam_start_confdir.c +++ b/tests/tst-pam_start_confdir.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include -#endif #include #include -- cgit v1.2.3