summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Usishchev <y.usishchev@samsung.com>2016-02-17 13:30:59 +0300
committerAndreas Gruenbacher <agruenba@redhat.com>2016-03-02 17:19:52 +0100
commitdec206f832b84fefbf61e61f2174d81fd3c61ea6 (patch)
treee644e7658673e97bd29d07cc8d30526bbef81d6b
parent37a27b6fd09ecb37097b85e5db74e4f77b80fe0a (diff)
downloadattr-dec206f832b84fefbf61e61f2174d81fd3c61ea6.tar.gz
Cleanup config.h usage
Add config.h include to every source file before all other includes.
-rw-r--r--libattr/attr_copy_action.c2
-rw-r--r--libattr/attr_copy_check.c2
-rw-r--r--libattr/libattr.c2
-rw-r--r--libattr/syscalls.c2
-rw-r--r--libmisc/high_water_alloc.c2
-rw-r--r--libmisc/next_line.c2
-rw-r--r--libmisc/quote.c2
-rw-r--r--libmisc/unquote.c2
-rw-r--r--libmisc/walk_tree.c2
-rw-r--r--tools/getfattr.c3
-rw-r--r--tools/setfattr.c3
11 files changed, 22 insertions, 2 deletions
diff --git a/libattr/attr_copy_action.c b/libattr/attr_copy_action.c
index c5e4a5a..57a6f65 100644
--- a/libattr/attr_copy_action.c
+++ b/libattr/attr_copy_action.c
@@ -15,6 +15,8 @@
along with this manual. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#if defined(linux)
#include <alloca.h>
#endif
diff --git a/libattr/attr_copy_check.c b/libattr/attr_copy_check.c
index ca0ac72..3f9280b 100644
--- a/libattr/attr_copy_check.c
+++ b/libattr/attr_copy_check.c
@@ -17,6 +17,8 @@
/* Copy extended attributes between files - default check callback */
+#include "config.h"
+
#include <string.h>
#include "error_context.h"
#include "attr/libattr.h"
diff --git a/libattr/libattr.c b/libattr/libattr.c
index 0e8fffe..d6668af 100644
--- a/libattr/libattr.c
+++ b/libattr/libattr.c
@@ -16,6 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <errno.h>
#include <stdlib.h>
#include <string.h>
diff --git a/libattr/syscalls.c b/libattr/syscalls.c
index 5e7db67..352841b 100644
--- a/libattr/syscalls.c
+++ b/libattr/syscalls.c
@@ -20,6 +20,8 @@
* Actual syscall wrappers are long gone to libc.
*/
+#include "config.h"
+
#include <sys/xattr.h>
int libattr_setxattr(const char *path, const char *name,
diff --git a/libmisc/high_water_alloc.c b/libmisc/high_water_alloc.c
index c127dc1..67852cb 100644
--- a/libmisc/high_water_alloc.c
+++ b/libmisc/high_water_alloc.c
@@ -17,6 +17,8 @@
License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include "misc.h"
diff --git a/libmisc/next_line.c b/libmisc/next_line.c
index a5bb099..81ca7a4 100644
--- a/libmisc/next_line.c
+++ b/libmisc/next_line.c
@@ -15,6 +15,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <stdio.h>
#include <string.h>
#include <limits.h>
diff --git a/libmisc/quote.c b/libmisc/quote.c
index bf8f9eb..2bb604b 100644
--- a/libmisc/quote.c
+++ b/libmisc/quote.c
@@ -17,6 +17,8 @@
License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
diff --git a/libmisc/unquote.c b/libmisc/unquote.c
index bffebf9..efee328 100644
--- a/libmisc/unquote.c
+++ b/libmisc/unquote.c
@@ -17,6 +17,8 @@
License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
diff --git a/libmisc/walk_tree.c b/libmisc/walk_tree.c
index 0a6af1e..00cea7b 100644
--- a/libmisc/walk_tree.c
+++ b/libmisc/walk_tree.c
@@ -17,6 +17,8 @@
License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
diff --git a/tools/getfattr.c b/tools/getfattr.c
index cc55d5f..72a8852 100644
--- a/tools/getfattr.c
+++ b/tools/getfattr.c
@@ -19,6 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -30,7 +32,6 @@
#include <libgen.h>
#include <sys/xattr.h>
-#include "config.h"
#include "walk_tree.h"
#include "misc.h"
diff --git a/tools/setfattr.c b/tools/setfattr.c
index 9556c6c..6f79d8f 100644
--- a/tools/setfattr.c
+++ b/tools/setfattr.c
@@ -19,6 +19,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
@@ -30,7 +32,6 @@
#include <sys/xattr.h>
#include <sys/errno.h>
-#include "config.h"
#include "misc.h"
#define CMD_LINE_OPTIONS "n:x:v:h"