From 398f9684624eb00075af938730cad805d7bdebfd Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 13 Mar 2017 23:19:47 +0000 Subject: Cleanup of superfluous includes --- src/conn-tools/s6-ipcserverd.c | 1 + src/include/s6/s6lock.h | 1 - src/libs6/ftrigr_check.c | 1 - src/libs6/ftrigr_subscribe.c | 5 +++-- src/libs6/ftrigr_unsubscribe.c | 4 +--- src/libs6/ftrigr_update.c | 2 +- src/libs6/ftrigr_wait_and.c | 2 -- src/libs6/ftrigr_wait_or.c | 2 -- src/libs6/ftrigw_notifyb.c | 1 - src/libs6/s6_accessrules_backend_cdb.c | 3 +-- src/libs6/s6_accessrules_keycheck_ip4.c | 1 - src/libs6/s6_accessrules_uidgid_cdb.c | 2 -- src/libs6/s6_accessrules_uidgid_fs.c | 1 - src/libs6/s6_fdholder_getdump.c | 2 +- src/libs6/s6_fdholder_list_cb.c | 2 +- src/libs6/s6_fdholder_setdump.c | 2 +- src/libs6/s6_svc_write.c | 1 - src/libs6/s6_svstatus_pack.c | 2 +- src/libs6/s6_svstatus_unpack.c | 2 +- src/libs6/s6lock_acquire.c | 5 +++-- src/libs6/s6lock_check.c | 1 - src/libs6/s6lock_release.c | 4 +--- src/libs6/s6lock_update.c | 2 +- src/libs6/s6lock_wait_and.c | 2 -- src/libs6/s6lock_wait_or.c | 4 +--- src/supervision/s6_svlisten_loop.c | 5 ----- 26 files changed, 18 insertions(+), 42 deletions(-) diff --git a/src/conn-tools/s6-ipcserverd.c b/src/conn-tools/s6-ipcserverd.c index 036de7b..abfaeed 100644 --- a/src/conn-tools/s6-ipcserverd.c +++ b/src/conn-tools/s6-ipcserverd.c @@ -1,6 +1,7 @@ /* ISC license. */ #include +#include #include #include #include diff --git a/src/include/s6/s6lock.h b/src/include/s6/s6lock.h index 90ad05c..8ac0127 100644 --- a/src/include/s6/s6lock.h +++ b/src/include/s6/s6lock.h @@ -4,7 +4,6 @@ #define S6LOCK_H #include -#include #include #include #include diff --git a/src/libs6/ftrigr_check.c b/src/libs6/ftrigr_check.c index ba0a6f1..0a7fcdc 100644 --- a/src/libs6/ftrigr_check.c +++ b/src/libs6/ftrigr_check.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include #include #include #include diff --git a/src/libs6/ftrigr_subscribe.c b/src/libs6/ftrigr_subscribe.c index 97e1931..3766d35 100644 --- a/src/libs6/ftrigr_subscribe.c +++ b/src/libs6/ftrigr_subscribe.c @@ -4,7 +4,8 @@ #include #include #include -#include +#include +#include #include #include #include @@ -14,7 +15,7 @@ uint16_t ftrigr_subscribe (ftrigr_t *a, char const *path, char const *re, uint32 { size_t pathlen = strlen(path) ; size_t relen = strlen(re) ; - unsigned int i ; + uint32_t i ; char err ; char tmp[15] = "--L" ; struct iovec v[3] = { { .iov_base = tmp, .iov_len = 15 }, { .iov_base = (char *)path, .iov_len = pathlen + 1 }, { .iov_base = (char *)re, .iov_len = relen + 1 } } ; diff --git a/src/libs6/ftrigr_unsubscribe.c b/src/libs6/ftrigr_unsubscribe.c index 949bc50..4428b72 100644 --- a/src/libs6/ftrigr_unsubscribe.c +++ b/src/libs6/ftrigr_unsubscribe.c @@ -1,9 +1,7 @@ /* ISC license. */ -#include #include -#include -#include +#include #include #include #include diff --git a/src/libs6/ftrigr_update.c b/src/libs6/ftrigr_update.c index 7f494c6..52f79b9 100644 --- a/src/libs6/ftrigr_update.c +++ b/src/libs6/ftrigr_update.c @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/libs6/ftrigr_wait_and.c b/src/libs6/ftrigr_wait_and.c index dc633a9..92080e7 100644 --- a/src/libs6/ftrigr_wait_and.c +++ b/src/libs6/ftrigr_wait_and.c @@ -1,8 +1,6 @@ /* ISC license. */ -#include #include -#include #include #include diff --git a/src/libs6/ftrigr_wait_or.c b/src/libs6/ftrigr_wait_or.c index 9d0be0f..0c7ea03 100644 --- a/src/libs6/ftrigr_wait_or.c +++ b/src/libs6/ftrigr_wait_or.c @@ -1,9 +1,7 @@ /* ISC license. */ -#include #include #include -#include #include #include diff --git a/src/libs6/ftrigw_notifyb.c b/src/libs6/ftrigw_notifyb.c index 36871ec..ee5c74c 100644 --- a/src/libs6/ftrigw_notifyb.c +++ b/src/libs6/ftrigw_notifyb.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include #include #include #include diff --git a/src/libs6/s6_accessrules_backend_cdb.c b/src/libs6/s6_accessrules_backend_cdb.c index 64e95d2..6a6551b 100644 --- a/src/libs6/s6_accessrules_backend_cdb.c +++ b/src/libs6/s6_accessrules_backend_cdb.c @@ -2,9 +2,8 @@ #include #include -#include #include -#include +#include #include #include #include diff --git a/src/libs6/s6_accessrules_keycheck_ip4.c b/src/libs6/s6_accessrules_keycheck_ip4.c index 2bd620d..de402be 100644 --- a/src/libs6/s6_accessrules_keycheck_ip4.c +++ b/src/libs6/s6_accessrules_keycheck_ip4.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include #include #include #include diff --git a/src/libs6/s6_accessrules_uidgid_cdb.c b/src/libs6/s6_accessrules_uidgid_cdb.c index 3679d87..707086e 100644 --- a/src/libs6/s6_accessrules_uidgid_cdb.c +++ b/src/libs6/s6_accessrules_uidgid_cdb.c @@ -1,7 +1,5 @@ /* ISC license. */ -#include -#include #include s6_accessrules_result_t s6_accessrules_uidgid_cdb (uid_t uid, gid_t gid, struct cdb *c, s6_accessrules_params_t *params) diff --git a/src/libs6/s6_accessrules_uidgid_fs.c b/src/libs6/s6_accessrules_uidgid_fs.c index 4ed007b..4b7c218 100644 --- a/src/libs6/s6_accessrules_uidgid_fs.c +++ b/src/libs6/s6_accessrules_uidgid_fs.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include #include s6_accessrules_result_t s6_accessrules_uidgid_fs (uid_t uid, gid_t gid, char const *rulesdir, s6_accessrules_params_t *params) diff --git a/src/libs6/s6_fdholder_getdump.c b/src/libs6/s6_fdholder_getdump.c index e201e6e..fb751fa 100644 --- a/src/libs6/s6_fdholder_getdump.c +++ b/src/libs6/s6_fdholder_getdump.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/libs6/s6_fdholder_list_cb.c b/src/libs6/s6_fdholder_list_cb.c index 9daaff7..f192167 100644 --- a/src/libs6/s6_fdholder_list_cb.c +++ b/src/libs6/s6_fdholder_list_cb.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/libs6/s6_fdholder_setdump.c b/src/libs6/s6_fdholder_setdump.c index 1548409..e5b694d 100644 --- a/src/libs6/s6_fdholder_setdump.c +++ b/src/libs6/s6_fdholder_setdump.c @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/libs6/s6_svc_write.c b/src/libs6/s6_svc_write.c index b7d2a27..ebd8ab0 100644 --- a/src/libs6/s6_svc_write.c +++ b/src/libs6/s6_svc_write.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include #include #include #include diff --git a/src/libs6/s6_svstatus_pack.c b/src/libs6/s6_svstatus_pack.c index f6e6e92..fbce109 100644 --- a/src/libs6/s6_svstatus_pack.c +++ b/src/libs6/s6_svstatus_pack.c @@ -1,8 +1,8 @@ /* ISC license. */ #include +#include #include -#include #include #include diff --git a/src/libs6/s6_svstatus_unpack.c b/src/libs6/s6_svstatus_unpack.c index dcd923a..dc358d3 100644 --- a/src/libs6/s6_svstatus_unpack.c +++ b/src/libs6/s6_svstatus_unpack.c @@ -1,8 +1,8 @@ /* ISC license. */ #include +#include #include -#include #include #include diff --git a/src/libs6/s6lock_acquire.c b/src/libs6/s6lock_acquire.c index d9b4170..b9791bf 100644 --- a/src/libs6/s6lock_acquire.c +++ b/src/libs6/s6lock_acquire.c @@ -4,7 +4,8 @@ #include #include #include -#include +#include +#include #include #include #include @@ -16,7 +17,7 @@ int s6lock_acquire (s6lock_t *a, uint16_t *u, char const *path, uint32_t options char err ; char tmp[23] = "--<" ; struct iovec v[2] = { { .iov_base = tmp, .iov_len = 23 }, { .iov_base = (char *)path, .iov_len = pathlen + 1 } } ; - unsigned int i ; + uint32_t i ; if (pathlen > UINT32_MAX) return (errno = ENAMETOOLONG, 0) ; if (!gensetdyn_new(&a->data, &i)) return 0 ; if (i > UINT16_MAX) diff --git a/src/libs6/s6lock_check.c b/src/libs6/s6lock_check.c index 8bdbae0..da08eff 100644 --- a/src/libs6/s6lock_check.c +++ b/src/libs6/s6lock_check.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include #include #include #include diff --git a/src/libs6/s6lock_release.c b/src/libs6/s6lock_release.c index 5be66e2..caf91a3 100644 --- a/src/libs6/s6lock_release.c +++ b/src/libs6/s6lock_release.c @@ -1,10 +1,8 @@ /* ISC license. */ -#include #include #include -#include -#include +#include #include #include #include diff --git a/src/libs6/s6lock_update.c b/src/libs6/s6lock_update.c index 128f9cc..a56c276 100644 --- a/src/libs6/s6lock_update.c +++ b/src/libs6/s6lock_update.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/libs6/s6lock_wait_and.c b/src/libs6/s6lock_wait_and.c index 22ec63b..d5d3792 100644 --- a/src/libs6/s6lock_wait_and.c +++ b/src/libs6/s6lock_wait_and.c @@ -1,8 +1,6 @@ /* ISC license. */ -#include #include -#include #include #include diff --git a/src/libs6/s6lock_wait_or.c b/src/libs6/s6lock_wait_or.c index f098339..f73b5ab 100644 --- a/src/libs6/s6lock_wait_or.c +++ b/src/libs6/s6lock_wait_or.c @@ -1,10 +1,8 @@ /* ISC license. */ -#include #include -#include -#include #include +#include #include int s6lock_wait_or (s6lock_t *a, uint16_t const *idlist, unsigned int n, tain_t const *deadline, tain_t *stamp) diff --git a/src/supervision/s6_svlisten_loop.c b/src/supervision/s6_svlisten_loop.c index 5f60be6..3cab3ff 100644 --- a/src/supervision/s6_svlisten_loop.c +++ b/src/supervision/s6_svlisten_loop.c @@ -1,13 +1,8 @@ /* ISC license. */ #include -#include -#include -#include -#include #include #include -#include #include #include #include -- cgit v1.2.3