coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 7/9] cp: -Z: remove redundant includes from selinux.[ch]


From: Pádraig Brady
Subject: [PATCH 7/9] cp: -Z: remove redundant includes from selinux.[ch]
Date: Wed, 28 Nov 2012 01:43:17 +0000

spotted by make syntax-check
---
 src/selinux.c |    8 +-------
 src/selinux.h |    4 +---
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/selinux.c b/src/selinux.c
index 73fdef2..bbb9999 100644
--- a/src/selinux.c
+++ b/src/selinux.c
@@ -21,18 +21,12 @@
 #include <selinux/flask.h>
 #include <selinux/context.h>
 #include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
 #include <libgen.h>
-#include <string.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <unistd.h>
-#include "selinux.h"
 
 #include "error.h"
 #include "system.h"
 #include "fts.h"
+#include "selinux.h"
 
 /*
   This function has being added to libselinux-2.1.12-5, but is here
diff --git a/src/selinux.h b/src/selinux.h
index 2d8e22e..ac316a9 100644
--- a/src/selinux.h
+++ b/src/selinux.h
@@ -19,9 +19,7 @@
 #ifndef COREUTILS_SELINUX_H
 # define COREUTILS_SELINUX_H
 
-# include <stdbool.h>
-# include <sys/stat.h>
-
 extern bool restorecon (char const *path, bool recurse, bool preserve);
 extern int defaultcon (char const *path, mode_t mode);
+
 #endif
-- 
1.7.6.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]