From bf1ac1a44c7ae16f8c01cfe9ce1c8f930e3957e6 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 26 Feb 2018 09:59:48 -0500 Subject: [PATCH] Clean up a few "include" statements, and document them. --- src/apply-default-acl.c | 15 +++++++-------- src/libadacl.c | 23 +++++++++++------------ 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/src/apply-default-acl.c b/src/apply-default-acl.c index c075059..f8ae4cd 100644 --- a/src/apply-default-acl.c +++ b/src/apply-default-acl.c @@ -9,14 +9,13 @@ #define _XOPEN_SOURCE 500 #define _GNU_SOURCE -#include -#include /* AT_FOO constants */ -#include /* nftw() et al. */ -#include -#include -#include -#include -#include +#include /* AT_FOO constants */ +#include /* nftw() et al. */ +#include /* getopt_long() */ +#include /* the "bool" type */ +#include /* perror() */ +#include /* EXIT_FAILURE, EXIT_SUCCESS */ +#include /* faccessat() */ #include "libadacl.h" diff --git a/src/libadacl.c b/src/libadacl.c index 28d5782..69f2073 100644 --- a/src/libadacl.c +++ b/src/libadacl.c @@ -8,21 +8,20 @@ /* Enables get_current_dir_name() in unistd.h */ #define _GNU_SOURCE -#include -#include -#include /* basename(), dirname() */ -#include /* PATH_MAX */ -#include -#include -#include -#include -#include -#include /* get_current_dir_name() */ +#include /* ELOOP, EINVAL, etc. */ +#include /* openat() */ +#include /* basename(), dirname() */ +#include /* PATH_MAX */ +#include /* the "bool" type */ +#include /* perror(), snprintf() */ +#include /* free() */ +#include /* strdup() */ +#include /* fstat() */ +#include /* get_current_dir_name() */ /* ACLs */ #include /* acl_get_perm, not portable */ -#include -#include +#include /* all other acl_foo functions */ #include "libadacl.h" -- 2.44.2