summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2017-05-29 14:01:10 +0200
committerJakub Hrozek <jhrozek@redhat.com>2017-06-08 17:09:57 +0200
commit96e1794db6915a655d97ecab7ab71ad53d1f527b (patch)
tree840d996a679bfdc3acebdc12339fa8b8b1cf892a /src
parent92b2a4023c06c613d4576f70cda820ba79750f56 (diff)
downloadsssd-96e1794db6915a655d97ecab7ab71ad53d1f527b.tar.gz
sssd-96e1794db6915a655d97ecab7ab71ad53d1f527b.tar.xz
sssd-96e1794db6915a655d97ecab7ab71ad53d1f527b.zip
UTIL: Remove ctype.h from util/util.h
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 <fidencio@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/certmap/sss_certmap.c4
-rw-r--r--src/lib/certmap/sss_certmap_krb5_match.c2
-rw-r--r--src/providers/krb5/krb5_child.c1
-rw-r--r--src/providers/ldap/sdap_async_users.c2
-rw-r--r--src/tests/sysdb-tests.c1
-rw-r--r--src/util/domain_info_utils.c1
-rw-r--r--src/util/nscd.c1
-rw-r--r--src/util/sss_krb5.c1
-rw-r--r--src/util/util.h1
9 files changed, 13 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
+#include <ctype.h>
+
#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 <http://www.gnu.org/licenses/>.
*/
+#include <ctype.h>
+
#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 <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <ctype.h>
#include <popt.h>
#include <security/pam_modules.h>
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 <http://www.gnu.org/licenses/>.
*/
+#include <ctype.h>
+
#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 <check.h>
#include <talloc.h>
#include <tevent.h>
+#include <ctype.h>
#include <popt.h>
#include <sys/stat.h>
#include <sys/types.h>
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 <http://www.gnu.org/licenses/>.
*/
+#include <ctype.h>
#include <utime.h>
#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 <ctype.h>
#include <stdio.h>
#include <talloc.h>
#include <stdlib.h>
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 <http://www.gnu.org/licenses/>.
*/
+#include <ctype.h>
#include <stdio.h>
#include <errno.h>
#include <talloc.h>
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 <stdio.h>
#include <stdint.h>
#include <stdbool.h>
-#include <ctype.h>
#include <libintl.h>
#include <limits.h>
#include <locale.h>