From: Michael Orlitzky Date: Mon, 26 Feb 2018 14:59:48 +0000 (-0500) Subject: Clean up a few "include" statements, and document them. X-Git-Tag: v0.1.0~10 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=bf1ac1a44c7ae16f8c01cfe9ce1c8f930e3957e6;p=apply-default-acl.git Clean up a few "include" statements, and document them. --- 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"