From 96e1794db6915a655d97ecab7ab71ad53d1f527b Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 29 May 2017 14:01:10 +0200 Subject: UTIL: Remove ctype.h from util/util.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ctype.h is not used directly by util/util.h. The header file ctype.h must be included in 32 files and after removing it from util.h it had to be added only to 8 missing files Reviewed-by: Fabiano FidĂȘncio --- src/lib/certmap/sss_certmap.c | 4 ++++ src/lib/certmap/sss_certmap_krb5_match.c | 2 ++ src/providers/krb5/krb5_child.c | 1 + src/providers/ldap/sdap_async_users.c | 2 ++ src/tests/sysdb-tests.c | 1 + src/util/domain_info_utils.c | 1 + src/util/nscd.c | 1 + src/util/sss_krb5.c | 1 + src/util/util.h | 1 - 9 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/lib/certmap/sss_certmap.c b/src/lib/certmap/sss_certmap.c index 080cab8ab..37bbc5e7c 100644 --- a/src/lib/certmap/sss_certmap.c +++ b/src/lib/certmap/sss_certmap.c @@ -22,6 +22,10 @@ along with this program. If not, see . */ +#include "config.h" + +#include + #include "util/util.h" #include "util/cert.h" #include "util/crypto/sss_crypto.h" diff --git a/src/lib/certmap/sss_certmap_krb5_match.c b/src/lib/certmap/sss_certmap_krb5_match.c index e40f17b8a..fe5e5bd2e 100644 --- a/src/lib/certmap/sss_certmap_krb5_match.c +++ b/src/lib/certmap/sss_certmap_krb5_match.c @@ -22,6 +22,8 @@ along with this program. If not, see . */ +#include + #include "util/util.h" #include "util/cert.h" #include "util/crypto/sss_crypto.h" diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index 7e56b8ff7..58abf2118 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include diff --git a/src/providers/ldap/sdap_async_users.c b/src/providers/ldap/sdap_async_users.c index 265cd7e4f..09d096e84 100644 --- a/src/providers/ldap/sdap_async_users.c +++ b/src/providers/ldap/sdap_async_users.c @@ -21,6 +21,8 @@ along with this program. If not, see . */ +#include + #include "util/util.h" #include "util/probes.h" #include "db/sysdb.h" diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index 6ec82ce4c..c186ed2fb 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include diff --git a/src/util/domain_info_utils.c b/src/util/domain_info_utils.c index 541058a16..46375656c 100644 --- a/src/util/domain_info_utils.c +++ b/src/util/domain_info_utils.c @@ -18,6 +18,7 @@ along with this program. If not, see . */ +#include #include #include "confdb/confdb.h" diff --git a/src/util/nscd.c b/src/util/nscd.c index ab29f3d27..5c72847c1 100644 --- a/src/util/nscd.c +++ b/src/util/nscd.c @@ -21,6 +21,7 @@ #include "config.h" +#include #include #include #include diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c index a3f066e8a..a702a8b57 100644 --- a/src/util/sss_krb5.c +++ b/src/util/sss_krb5.c @@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include #include #include #include diff --git a/src/util/util.h b/src/util/util.h index abaeebd11..a19591293 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include -- cgit