diff options
author | MIZUTA Takeshi <mizuta.takeshi@fujitsu.com> | 2020-02-03 19:12:21 +0900 |
---|---|---|
committer | Tomáš Mráz <t8m@users.noreply.github.com> | 2020-02-18 10:57:42 +0100 |
commit | a96e66f788b1460a8ef4c2883207d4474b829d10 (patch) | |
tree | 4498f9ef4bf95d6c9cdd1ac97a3267c1170f54c4 | |
parent | 347691818ee80c46a9a2615bdf7733cf89bf6a4c (diff) | |
download | pam-a96e66f788b1460a8ef4c2883207d4474b829d10.tar.gz pam-a96e66f788b1460a8ef4c2883207d4474b829d10.tar.bz2 pam-a96e66f788b1460a8ef4c2883207d4474b829d10.zip |
Remove redundant header file inclusion
There are some source code including the same header file redundantly.
We remove these redundant header file inclusion.
-rw-r--r-- | modules/pam_issue/pam_issue.c | 1 | ||||
-rw-r--r-- | modules/pam_loginuid/pam_loginuid.c | 1 | ||||
-rw-r--r-- | modules/pam_selinux/pam_selinux.c | 2 | ||||
-rw-r--r-- | modules/pam_sepermit/pam_sepermit.c | 1 | ||||
-rw-r--r-- | modules/pam_shells/pam_shells.c | 1 | ||||
-rw-r--r-- | modules/pam_tally2/pam_tally2.c | 1 | ||||
-rw-r--r-- | modules/pam_unix/pam_unix_passwd.c | 1 | ||||
-rw-r--r-- | modules/pam_xauth/pam_xauth.c | 2 |
8 files changed, 0 insertions, 10 deletions
diff --git a/modules/pam_issue/pam_issue.c b/modules/pam_issue/pam_issue.c index 5fa21c37..8c5ae576 100644 --- a/modules/pam_issue/pam_issue.c +++ b/modules/pam_issue/pam_issue.c @@ -22,7 +22,6 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> -#include <string.h> #include <unistd.h> #include <sys/utsname.h> #include <utmp.h> diff --git a/modules/pam_loginuid/pam_loginuid.c b/modules/pam_loginuid/pam_loginuid.c index 96bfd98e..03c0e3a3 100644 --- a/modules/pam_loginuid/pam_loginuid.c +++ b/modules/pam_loginuid/pam_loginuid.c @@ -42,7 +42,6 @@ #ifdef HAVE_LIBAUDIT #include <libaudit.h> #include <sys/select.h> -#include <errno.h> #endif /* diff --git a/modules/pam_selinux/pam_selinux.c b/modules/pam_selinux/pam_selinux.c index 5affec4f..96f9c831 100644 --- a/modules/pam_selinux/pam_selinux.c +++ b/modules/pam_selinux/pam_selinux.c @@ -63,14 +63,12 @@ #include <selinux/selinux.h> #include <selinux/get_context_list.h> -#include <selinux/selinux.h> #include <selinux/context.h> #include <selinux/get_default_type.h> #ifdef HAVE_LIBAUDIT #include <libaudit.h> #include <sys/select.h> -#include <errno.h> #endif /* Send audit message */ diff --git a/modules/pam_sepermit/pam_sepermit.c b/modules/pam_sepermit/pam_sepermit.c index f37af0fb..14965a2f 100644 --- a/modules/pam_sepermit/pam_sepermit.c +++ b/modules/pam_sepermit/pam_sepermit.c @@ -53,7 +53,6 @@ #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> -#include <pwd.h> #include <dirent.h> #define PAM_SM_AUTH diff --git a/modules/pam_shells/pam_shells.c b/modules/pam_shells/pam_shells.c index c8acb9e2..bfe7f116 100644 --- a/modules/pam_shells/pam_shells.c +++ b/modules/pam_shells/pam_shells.c @@ -15,7 +15,6 @@ #include <string.h> #include <stdio.h> #include <stdlib.h> -#include <string.h> #include <sys/stat.h> #include <syslog.h> #include <unistd.h> diff --git a/modules/pam_tally2/pam_tally2.c b/modules/pam_tally2/pam_tally2.c index 48282a33..fc6d6237 100644 --- a/modules/pam_tally2/pam_tally2.c +++ b/modules/pam_tally2/pam_tally2.c @@ -64,7 +64,6 @@ #include <sys/stat.h> #include <sys/param.h> #include <fcntl.h> -#include <unistd.h> #include <signal.h> #include "tallylog.h" diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c index 636ace97..a8eec77a 100644 --- a/modules/pam_unix/pam_unix_passwd.c +++ b/modules/pam_unix/pam_unix_passwd.c @@ -56,7 +56,6 @@ #include <sys/stat.h> #include <signal.h> -#include <errno.h> #include <sys/wait.h> #include <sys/resource.h> diff --git a/modules/pam_xauth/pam_xauth.c b/modules/pam_xauth/pam_xauth.c index 61e98253..ea99bb03 100644 --- a/modules/pam_xauth/pam_xauth.c +++ b/modules/pam_xauth/pam_xauth.c @@ -50,7 +50,6 @@ #include <stdlib.h> #include <string.h> #include <syslog.h> -#include <unistd.h> #define PAM_SM_SESSION @@ -62,7 +61,6 @@ #ifdef WITH_SELINUX #include <selinux/selinux.h> #include <selinux/label.h> -#include <sys/stat.h> #endif #include "pam_cc_compat.h" |