summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2017-05-27 18:37:50 +0200
committerJakub Hrozek <jhrozek@redhat.com>2017-06-08 17:09:31 +0200
commit91141c6ae6e6a255cfd66266581671ddd16086b3 (patch)
tree2d2efeab1a585beb62719ae942454611a93bf31f
parentcf098cbeef745b75d2efe8334d4d715bcef31883 (diff)
downloadsssd-91141c6ae6e6a255cfd66266581671ddd16086b3.tar.gz
sssd-91141c6ae6e6a255cfd66266581671ddd16086b3.tar.xz
sssd-91141c6ae6e6a255cfd66266581671ddd16086b3.zip
UTIL: Remove signal.h from util/util.h
signal.h is not used directly by util/util.h. The header file signal.h must be included in 19 files and after removing it from util.h it had to be added only to 12 missing files. And util.util.h is included in 381 files Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
-rw-r--r--src/monitor/monitor.c1
-rw-r--r--src/providers/data_provider_be.c1
-rw-r--r--src/providers/krb5/krb5_child_handler.c2
-rw-r--r--src/providers/krb5/krb5_common.c1
-rw-r--r--src/providers/ldap/ldap_child.c1
-rw-r--r--src/providers/ldap/ldap_common.c2
-rw-r--r--src/providers/ldap/sdap_child_helpers.c1
-rw-r--r--src/providers/proxy/proxy_auth.c2
-rw-r--r--src/tests/util-tests.c1
-rw-r--r--src/util/child_common.c1
-rw-r--r--src/util/server.c1
-rw-r--r--src/util/signal.c2
-rw-r--r--src/util/util.h1
13 files changed, 15 insertions, 2 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 43afdb9d3..7726548bb 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -27,6 +27,7 @@
#include <sys/param.h>
#include <time.h>
#include <string.h>
+#include <signal.h>
#ifdef HAVE_SYS_INOTIFY_H
#include <sys/inotify.h>
#endif
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index 7e7b74c36..0ccbb6e33 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -31,6 +31,7 @@
#include <errno.h>
#include <dlfcn.h>
#include <popt.h>
+#include <signal.h>
#include <dbus/dbus.h>
#include <security/pam_appl.h>
diff --git a/src/providers/krb5/krb5_child_handler.c b/src/providers/krb5/krb5_child_handler.c
index 0007f92a6..8ef38ff2a 100644
--- a/src/providers/krb5/krb5_child_handler.c
+++ b/src/providers/krb5/krb5_child_handler.c
@@ -22,6 +22,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <signal.h>
+
#include "util/util.h"
#include "util/child_common.h"
#include "providers/krb5/krb5_common.h"
diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c
index e550fa736..0b32da94d 100644
--- a/src/providers/krb5/krb5_common.c
+++ b/src/providers/krb5/krb5_common.c
@@ -25,6 +25,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <netdb.h>
+#include <signal.h>
#include <arpa/inet.h>
#include <ctype.h>
diff --git a/src/providers/ldap/ldap_child.c b/src/providers/ldap/ldap_child.c
index 3f88a28dc..cfbfc5b76 100644
--- a/src/providers/ldap/ldap_child.c
+++ b/src/providers/ldap/ldap_child.c
@@ -25,6 +25,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
+#include <signal.h>
#include <popt.h>
#include "util/util.h"
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c
index c9f78ff8d..0597e91f7 100644
--- a/src/providers/ldap/ldap_common.c
+++ b/src/providers/ldap/ldap_common.c
@@ -22,6 +22,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <signal.h>
+
#include "providers/ldap/ldap_common.h"
#include "providers/fail_over.h"
#include "providers/ldap/sdap_async_private.h"
diff --git a/src/providers/ldap/sdap_child_helpers.c b/src/providers/ldap/sdap_child_helpers.c
index 0f0b6e91e..3825ee4a8 100644
--- a/src/providers/ldap/sdap_child_helpers.c
+++ b/src/providers/ldap/sdap_child_helpers.c
@@ -27,6 +27,7 @@
#include <pwd.h>
#include <unistd.h>
#include <fcntl.h>
+#include <signal.h>
#include "util/util.h"
#include "util/sss_krb5.h"
diff --git a/src/providers/proxy/proxy_auth.c b/src/providers/proxy/proxy_auth.c
index e53b38e66..a05586e60 100644
--- a/src/providers/proxy/proxy_auth.c
+++ b/src/providers/proxy/proxy_auth.c
@@ -22,6 +22,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <signal.h>
+
#include "providers/proxy/proxy.h"
#include "providers/proxy/proxy_iface_generated.h"
diff --git a/src/tests/util-tests.c b/src/tests/util-tests.c
index ae2577f8e..a1b3fddce 100644
--- a/src/tests/util-tests.c
+++ b/src/tests/util-tests.c
@@ -30,6 +30,7 @@
#include <fcntl.h>
#include <stdlib.h>
#include <ctype.h>
+#include <arpa/inet.h>
#include "util/util.h"
#include "util/sss_utf8.h"
diff --git a/src/util/child_common.c b/src/util/child_common.c
index ffe565ecf..b300d84bf 100644
--- a/src/util/child_common.c
+++ b/src/util/child_common.c
@@ -24,6 +24,7 @@
#include <sys/types.h>
#include <fcntl.h>
+#include <signal.h>
#include <tevent.h>
#include <sys/wait.h>
#include <errno.h>
diff --git a/src/util/server.c b/src/util/server.c
index 9c9441840..0046c9737 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -28,6 +28,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
+#include <signal.h>
#include <ldb.h>
#include "util/util.h"
#include "confdb/confdb.h"
diff --git a/src/util/signal.c b/src/util/signal.c
index 8acdccaeb..93fd34090 100644
--- a/src/util/signal.c
+++ b/src/util/signal.c
@@ -21,7 +21,7 @@
#include "util/util.h"
#include <sys/types.h>
#include <sys/wait.h>
-
+#include <signal.h>
/**
* @file
diff --git a/src/util/util.h b/src/util/util.h
index b6d13816a..d44143686 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -36,7 +36,6 @@
#include <pcre.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <arpa/inet.h>
#include <netinet/in.h>
#include <talloc.h>