[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
- Re: Make mv work better with SELinux., Daniel J Walsh, 2012/11/08
- Re: Make mv work better with SELinux., Pádraig Brady, 2012/11/08
- Re: Make mv work better with SELinux., Pádraig Brady, 2012/11/27
- [PATCH 4/9] cp: -Z: s/fprintf/error/, Pádraig Brady, 2012/11/27
- [PATCH 6/9] cp: -Z: add selinux.c to POTFILES.in, Pádraig Brady, 2012/11/27
- [PATCH 3/9] cp: -Z: spelling fixes, Pádraig Brady, 2012/11/27
- [PATCH 7/9] cp: -Z: remove redundant includes from selinux.[ch],
Pádraig Brady <=
- [PATCH 5/9] cp: -Z: wrap/clarify/isolate --help messages, Pádraig Brady, 2012/11/27
- [PATCH 2/9] cp: -Z: formatting cleanups, Pádraig Brady, 2012/11/27
- [PATCH 8/9] cp: -Z: fix a logic error due to incorrect braces in mkfifo, Pádraig Brady, 2012/11/27
- [PATCH 1/9] cp: -Z: adjust utils to run restorecon with -Z, Pádraig Brady, 2012/11/27
- [PATCH 9/9] cp: -Z: adjust an existing selinux test to the new scheme, Pádraig Brady, 2012/11/27
- [PATCH] cp: -Z: fix memory leak edge case, Pádraig Brady, 2012/11/28
- Re: Make mv work better with SELinux., Jim Meyering, 2012/11/29