aboutsummaryrefslogtreecommitdiff
path: root/xtests
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-08-28 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-08-28 08:00:00 +0000
commit214e97e115ffc9f9cf56a3576be4bbcab95b07f7 (patch)
treef41ea04025364fdb2701f3c510a51917ceec20f5 /xtests
parent0b3eff364979e9281c1d4fd9a090bdab5fde0d67 (diff)
downloadpam-214e97e115ffc9f9cf56a3576be4bbcab95b07f7.tar.gz
pam-214e97e115ffc9f9cf56a3576be4bbcab95b07f7.tar.bz2
pam-214e97e115ffc9f9cf56a3576be4bbcab95b07f7.zip
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.
Diffstat (limited to 'xtests')
-rw-r--r--xtests/tst-pam_access1.c2
-rw-r--r--xtests/tst-pam_access2.c2
-rw-r--r--xtests/tst-pam_access3.c2
-rw-r--r--xtests/tst-pam_access4.c2
-rw-r--r--xtests/tst-pam_authfail.c2
-rw-r--r--xtests/tst-pam_authsucceed.c2
-rw-r--r--xtests/tst-pam_dispatch1.c2
-rw-r--r--xtests/tst-pam_dispatch2.c2
-rw-r--r--xtests/tst-pam_dispatch3.c2
-rw-r--r--xtests/tst-pam_dispatch4.c2
-rw-r--r--xtests/tst-pam_dispatch5.c2
-rw-r--r--xtests/tst-pam_group1.c2
-rw-r--r--xtests/tst-pam_limits1.c2
-rw-r--r--xtests/tst-pam_motd.c2
-rw-r--r--xtests/tst-pam_pwhistory1.c2
-rw-r--r--xtests/tst-pam_succeed_if1.c2
-rw-r--r--xtests/tst-pam_time1.c2
-rw-r--r--xtests/tst-pam_unix1.c2
-rw-r--r--xtests/tst-pam_unix2.c2
-rw-r--r--xtests/tst-pam_unix3.c2
-rw-r--r--xtests/tst-pam_unix4.c2
21 files changed, 0 insertions, 42 deletions
diff --git a/xtests/tst-pam_access1.c b/xtests/tst-pam_access1.c
index 15711297..271f4868 100644
--- a/xtests/tst-pam_access1.c
+++ b/xtests/tst-pam_access1.c
@@ -40,9 +40,7 @@
User is member of group tstpamaccess, pam_authenticate should pass.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_access2.c b/xtests/tst-pam_access2.c
index 293d72ab..7c427f9c 100644
--- a/xtests/tst-pam_access2.c
+++ b/xtests/tst-pam_access2.c
@@ -40,9 +40,7 @@
User is not member of group tstpamaccess, pam_authenticate should fail.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_access3.c b/xtests/tst-pam_access3.c
index 817ce930..508f2440 100644
--- a/xtests/tst-pam_access3.c
+++ b/xtests/tst-pam_access3.c
@@ -40,9 +40,7 @@
pam_authenticate should pass for user tstpamaccess3
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_access4.c b/xtests/tst-pam_access4.c
index 115217f6..73593d50 100644
--- a/xtests/tst-pam_access4.c
+++ b/xtests/tst-pam_access4.c
@@ -42,9 +42,7 @@
and fail again for localhost
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_authfail.c b/xtests/tst-pam_authfail.c
index 0e7d8087..448b721f 100644
--- a/xtests/tst-pam_authfail.c
+++ b/xtests/tst-pam_authfail.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <string.h>
diff --git a/xtests/tst-pam_authsucceed.c b/xtests/tst-pam_authsucceed.c
index c0ee8023..936d8ec9 100644
--- a/xtests/tst-pam_authsucceed.c
+++ b/xtests/tst-pam_authsucceed.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <string.h>
diff --git a/xtests/tst-pam_dispatch1.c b/xtests/tst-pam_dispatch1.c
index 404c0119..0c082c16 100644
--- a/xtests/tst-pam_dispatch1.c
+++ b/xtests/tst-pam_dispatch1.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <string.h>
diff --git a/xtests/tst-pam_dispatch2.c b/xtests/tst-pam_dispatch2.c
index 5c63f5b3..bf3f634c 100644
--- a/xtests/tst-pam_dispatch2.c
+++ b/xtests/tst-pam_dispatch2.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <strings.h>
diff --git a/xtests/tst-pam_dispatch3.c b/xtests/tst-pam_dispatch3.c
index d44e4880..bbe9ed2e 100644
--- a/xtests/tst-pam_dispatch3.c
+++ b/xtests/tst-pam_dispatch3.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <string.h>
diff --git a/xtests/tst-pam_dispatch4.c b/xtests/tst-pam_dispatch4.c
index a4db8a88..00ee457e 100644
--- a/xtests/tst-pam_dispatch4.c
+++ b/xtests/tst-pam_dispatch4.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <string.h>
diff --git a/xtests/tst-pam_dispatch5.c b/xtests/tst-pam_dispatch5.c
index f1197b38..576dbd46 100644
--- a/xtests/tst-pam_dispatch5.c
+++ b/xtests/tst-pam_dispatch5.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <string.h>
diff --git a/xtests/tst-pam_group1.c b/xtests/tst-pam_group1.c
index e5e5ae1c..30c121d3 100644
--- a/xtests/tst-pam_group1.c
+++ b/xtests/tst-pam_group1.c
@@ -43,9 +43,7 @@
to tstpamgrp2.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <grp.h>
#include <stdio.h>
diff --git a/xtests/tst-pam_limits1.c b/xtests/tst-pam_limits1.c
index d8952400..ed4982de 100644
--- a/xtests/tst-pam_limits1.c
+++ b/xtests/tst-pam_limits1.c
@@ -41,9 +41,7 @@
getrlimit should return soft=1 and hard=40.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_motd.c b/xtests/tst-pam_motd.c
index bba2f9d5..2cc006a8 100644
--- a/xtests/tst-pam_motd.c
+++ b/xtests/tst-pam_motd.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_pwhistory1.c b/xtests/tst-pam_pwhistory1.c
index 1641c298..13adb056 100644
--- a/xtests/tst-pam_pwhistory1.c
+++ b/xtests/tst-pam_pwhistory1.c
@@ -38,9 +38,7 @@
* Try a new password, should succeed
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_succeed_if1.c b/xtests/tst-pam_succeed_if1.c
index c0187743..78a1c30d 100644
--- a/xtests/tst-pam_succeed_if1.c
+++ b/xtests/tst-pam_succeed_if1.c
@@ -41,9 +41,7 @@
User is pamtest or tstpamtest, both should succeed.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_time1.c b/xtests/tst-pam_time1.c
index 18dfeba9..ff773f1a 100644
--- a/xtests/tst-pam_time1.c
+++ b/xtests/tst-pam_time1.c
@@ -41,9 +41,7 @@
User 'x' should not be able to login.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_unix1.c b/xtests/tst-pam_unix1.c
index 5ee24082..665c67d7 100644
--- a/xtests/tst-pam_unix1.c
+++ b/xtests/tst-pam_unix1.c
@@ -35,9 +35,7 @@
* Test case: '!!' as password should not allow login
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_unix2.c b/xtests/tst-pam_unix2.c
index 65a75f3e..b50fb6bb 100644
--- a/xtests/tst-pam_unix2.c
+++ b/xtests/tst-pam_unix2.c
@@ -37,9 +37,7 @@
* Second use longer password, 9 characters
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_unix3.c b/xtests/tst-pam_unix3.c
index 50a94587..18ecbebf 100644
--- a/xtests/tst-pam_unix3.c
+++ b/xtests/tst-pam_unix3.c
@@ -38,9 +38,7 @@
* Third use wrong password, 9 characters
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/xtests/tst-pam_unix4.c b/xtests/tst-pam_unix4.c
index 1ba0a40c..b06cec8a 100644
--- a/xtests/tst-pam_unix4.c
+++ b/xtests/tst-pam_unix4.c
@@ -35,9 +35,7 @@
* Check password change minimum days handling.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>