diff options
author | Dmitry V. Levin <ldv@strace.io> | 2024-08-19 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-08-19 08:00:00 +0000 |
commit | bfa62b63434204e708065ea593650fd0cfcf47ec (patch) | |
tree | 05eed5514900b6e43203b683a24b08d608b9721a /libpam | |
parent | 941bfc1de4c8d4963c8b9d63d32fed391f1476c8 (diff) | |
download | pam-bfa62b63434204e708065ea593650fd0cfcf47ec.tar.gz pam-bfa62b63434204e708065ea593650fd0cfcf47ec.tar.bz2 pam-bfa62b63434204e708065ea593650fd0cfcf47ec.zip |
libpam: do not include config.h right before pam_private.h
As the first header included by pam_private.h is config.h,
there is no need to include config.h explicitly right before
pam_private.h
Diffstat (limited to 'libpam')
-rw-r--r-- | libpam/pam_data.c | 2 | ||||
-rw-r--r-- | libpam/pam_get_authtok.c | 1 | ||||
-rw-r--r-- | libpam/pam_modutil_searchkey.c | 2 | ||||
-rw-r--r-- | libpam/pam_syslog.c | 4 | ||||
-rw-r--r-- | libpam/pam_vprompt.c | 6 |
5 files changed, 3 insertions, 12 deletions
diff --git a/libpam/pam_data.c b/libpam/pam_data.c index c457d5ce..2ad2a168 100644 --- a/libpam/pam_data.c +++ b/libpam/pam_data.c @@ -31,8 +31,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" - #include "pam_private.h" #include <stdlib.h> diff --git a/libpam/pam_get_authtok.c b/libpam/pam_get_authtok.c index 3f383339..7a38698a 100644 --- a/libpam/pam_get_authtok.c +++ b/libpam/pam_get_authtok.c @@ -31,7 +31,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" #include "pam_private.h" #include "pam_inline.h" diff --git a/libpam/pam_modutil_searchkey.c b/libpam/pam_modutil_searchkey.c index ccf2461f..1a497f8f 100644 --- a/libpam/pam_modutil_searchkey.c +++ b/libpam/pam_modutil_searchkey.c @@ -4,8 +4,6 @@ * lookup a value for key in login.defs file or similar key value format */ -#include "config.h" - #include "pam_private.h" #include "pam_modutil_private.h" #include <security/pam_ext.h> diff --git a/libpam/pam_syslog.c b/libpam/pam_syslog.c index c5a6feca..e67f713f 100644 --- a/libpam/pam_syslog.c +++ b/libpam/pam_syslog.c @@ -31,7 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" +#include "pam_private.h" #include <stdio.h> #include <stdlib.h> @@ -43,8 +43,6 @@ #include <security/_pam_macros.h> #include <security/pam_ext.h> -#include "pam_private.h" - #ifndef LOG_AUTHPRIV #define LOG_AUTHPRIV LOG_AUTH #endif diff --git a/libpam/pam_vprompt.c b/libpam/pam_vprompt.c index 8c9d63d5..a16f6004 100644 --- a/libpam/pam_vprompt.c +++ b/libpam/pam_vprompt.c @@ -31,7 +31,8 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" +#include "pam_private.h" +#include "pam_inline.h" #include <stdio.h> #include <stdlib.h> @@ -42,9 +43,6 @@ #include <security/pam_modules.h> #include <security/pam_ext.h> -#include "pam_private.h" -#include "pam_inline.h" - int pam_vprompt (pam_handle_t *pamh, int style, char **response, const char *fmt, va_list args) |