diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-02-14 09:44:31 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-02-23 23:53:42 +0100 |
commit | 2eec67acbb00593e414549a7e5b35eb7dd776b1b (patch) | |
tree | c692391dddfa88d938a29ea238a9e1a95da879fc /src/core/execute.c | |
parent | 4aab5d0cbd979b2cccb88534f118bceaa86466d8 (diff) |
remove unused includes
This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use.
Diffstat (limited to 'src/core/execute.c')
-rw-r--r-- | src/core/execute.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 1815e3de2d..39ec5adbbe 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -19,8 +19,6 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <assert.h> -#include <dirent.h> #include <errno.h> #include <fcntl.h> #include <unistd.h> @@ -29,14 +27,8 @@ #include <sys/socket.h> #include <sys/un.h> #include <sys/prctl.h> -#include <linux/sched.h> -#include <sys/types.h> #include <sys/stat.h> #include <grp.h> -#include <pwd.h> -#include <sys/mount.h> -#include <linux/fs.h> -#include <linux/oom.h> #include <poll.h> #include <glob.h> #include <sys/personality.h> @@ -80,12 +72,14 @@ #include "errno-list.h" #include "af-list.h" #include "mkdir.h" -#include "apparmor-util.h" #include "smack-util.h" #include "bus-endpoint.h" -#include "label.h" #include "cap-list.h" +#ifdef HAVE_APPARMOR +#include "apparmor-util.h" +#endif + #ifdef HAVE_SECCOMP #include "seccomp-util.h" #endif |