diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2017-05-27 19:07:41 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2017-06-08 17:09:36 +0200 |
commit | 8890a30f5d054187fd7d5b50503f82a49cd025f0 (patch) | |
tree | d159182557253571faea184c02332d298611e3f5 | |
parent | 91141c6ae6e6a255cfd66266581671ddd16086b3 (diff) | |
download | sssd-8890a30f5d054187fd7d5b50503f82a49cd025f0.tar.gz sssd-8890a30f5d054187fd7d5b50503f82a49cd025f0.tar.xz sssd-8890a30f5d054187fd7d5b50503f82a49cd025f0.zip |
UTIL: Remove fcntl.h from util/util.h
fcntl.h is not used directly by util/util.h. The header file fcntl.h
must be included in 49 files and after removing it from util.h it had to be
added only to 7 missing file which were using either directly syscall fcntl
or syscall open.
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
-rw-r--r-- | src/providers/krb5/krb5_child.c | 1 | ||||
-rw-r--r-- | src/responder/common/responder_common.c | 1 | ||||
-rw-r--r-- | src/responder/secrets/local.c | 2 | ||||
-rw-r--r-- | src/tests/cmocka/test_ipa_subdomains_server.c | 3 | ||||
-rw-r--r-- | src/util/crypto/sss_crypto.c | 4 | ||||
-rw-r--r-- | src/util/sss_ldap.c | 3 | ||||
-rw-r--r-- | src/util/util.c | 1 | ||||
-rw-r--r-- | src/util/util.h | 1 |
8 files changed, 14 insertions, 2 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index 3cd8bfba7..7e56b8ff7 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -25,6 +25,7 @@ #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> +#include <fcntl.h> #include <popt.h> #include <security/pam_modules.h> diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c index 9d4889be6..f81448e1f 100644 --- a/src/responder/common/responder_common.c +++ b/src/responder/common/responder_common.c @@ -29,6 +29,7 @@ #include <string.h> #include <sys/time.h> #include <errno.h> +#include <fcntl.h> #include <popt.h> #include <dbus/dbus.h> diff --git a/src/responder/secrets/local.c b/src/responder/secrets/local.c index 02007ada8..66401ef50 100644 --- a/src/responder/secrets/local.c +++ b/src/responder/secrets/local.c @@ -22,6 +22,8 @@ #include "responder/secrets/secsrv_private.h" #include "util/crypto/sss_crypto.h" #include <time.h> +#include <sys/stat.h> +#include <fcntl.h> #include <ldb.h> #define MKEY_SIZE (256 / 8) diff --git a/src/tests/cmocka/test_ipa_subdomains_server.c b/src/tests/cmocka/test_ipa_subdomains_server.c index ca48425ac..eccfc2fe1 100644 --- a/src/tests/cmocka/test_ipa_subdomains_server.c +++ b/src/tests/cmocka/test_ipa_subdomains_server.c @@ -25,7 +25,8 @@ #include <errno.h> #include <popt.h> #include <stdlib.h> - +#include <sys/stat.h> +#include <fcntl.h> #include <sys/types.h> #include <ifaddrs.h> #include <arpa/inet.h> diff --git a/src/util/crypto/sss_crypto.c b/src/util/crypto/sss_crypto.c index ac90bac07..5958155d4 100644 --- a/src/util/crypto/sss_crypto.c +++ b/src/util/crypto/sss_crypto.c @@ -19,6 +19,10 @@ */ #include "config.h" + +#include <sys/stat.h> +#include <fcntl.h> + #include "util/util.h" #include "util/crypto/sss_crypto.h" diff --git a/src/util/sss_ldap.c b/src/util/sss_ldap.c index 281e8130f..9d1e95217 100644 --- a/src/util/sss_ldap.c +++ b/src/util/sss_ldap.c @@ -19,6 +19,9 @@ */ #include "config.h" + +#include <fcntl.h> + #include "util/util.h" #include "util/sss_sockets.h" #include "util/sss_ldap.h" diff --git a/src/util/util.c b/src/util/util.c index f0e8f9dd6..e3efa7fef 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -25,6 +25,7 @@ #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> +#include <fcntl.h> #include <talloc.h> #include <dhash.h> #include <time.h> diff --git a/src/util/util.h b/src/util/util.h index d44143686..a1b3c595b 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -25,7 +25,6 @@ #include <stdio.h> #include <stdint.h> #include <stdbool.h> -#include <fcntl.h> #include <string.h> #include <strings.h> #include <ctype.h> |