]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: Clean up includes
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 21 May 2025 07:37:24 +0000 (09:37 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 21 May 2025 08:49:42 +0000 (10:49 +0200)
This removes more unused includes from the components already cleaned
up in #37467 and #37457.

Split out of #37344.

58 files changed:
src/battery-check/battery-check.c
src/cgls/cgls.c
src/cgtop/cgtop.c
src/coredump/coredump-vacuum.c
src/coredump/coredump.c
src/delta/delta.c
src/dissect/dissect.c
src/firstboot/firstboot.c
src/fsck/fsck.c
src/gpt-auto-generator/gpt-auto-generator.c
src/growfs/growfs.c
src/growfs/makefs.c
src/hostname/hostnamed.c
src/integritysetup/integritysetup-generator.c
src/keyutil/keyutil.c
src/locale/localed.c
src/mountfsd/mountfsd-manager.c
src/mountfsd/mountwork.c
src/nsresourced/nsresourced-manager.c
src/nsresourced/nsresourcework.c
src/nsresourced/userns-restrict.c
src/portable/portabled-image-bus.c
src/portable/portabled-image-bus.h
src/portable/portabled.c
src/portable/portabled.h
src/pstore/pstore.c
src/quotacheck/quotacheck.c
src/random-seed/random-seed-tool.c
src/remount-fs/remount-fs.c
src/repart/repart.c
src/reply-password/reply-password.c
src/run/run.c
src/shutdown/detach-loopback.c
src/shutdown/detach-md.c
src/shutdown/umount.c
src/sleep/battery-capacity.c
src/sleep/battery-capacity.h
src/sleep/sleep.c
src/sleep/test-battery-capacity.c
src/socket-activate/socket-activate.c
src/socket-proxy/socket-proxyd.c
src/ssh-generator/ssh-generator.c
src/ssh-generator/ssh-proxy.c
src/sulogin-shell/sulogin-shell.c
src/sysext/sysext.c
src/timedate/timedated.c
src/tpm2-setup/tpm2-setup.c
src/tty-ask-password-agent/tty-ask-password-agent.c
src/update-done/update-done.c
src/update-utmp/update-utmp.c
src/user-sessions/user-sessions.c
src/userdb/userdbd-manager.c
src/userdb/userwork.c
src/vconsole/vconsole-setup.c
src/veritysetup/veritysetup-generator.c
src/vmspawn/vmspawn.c
src/xdg-autostart-generator/xdg-autostart-generator.c
src/xdg-autostart-generator/xdg-autostart-service.c

index 207f477f1c5a9df4de9c713b732337b1d1ae611c..78636d77940024d9eb5b9ed0b78efb50fffa621b 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <getopt.h>
 #include <sys/socket.h>
-#include <unistd.h>
 
 #include "sd-messages.h"
 
index 266cec4df47e90d016d6bb8e86a2b8b31ab796aa..8349233fa62afd67e24bb207498c2c2f4cd48ac0 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <getopt.h>
 #include <stdio.h>
-#include <unistd.h>
 
 #include "sd-bus.h"
 
index fc5707e5a312d6f354235631d5412d22012c7ed8..9b56af7bebd8e04842c345f533b7025cafc842a8 100644 (file)
@@ -20,7 +20,6 @@
 #include "process-util.h"
 #include "procfs-util.h"
 #include "sort-util.h"
-#include "strv.h"
 #include "terminal-util.h"
 #include "time-util.h"
 #include "virt.h"
index f3e24038227855c6aaee55582abfd936dc86c443..ac6d8aa26da23080a3ec15bbd42e73039bcea773 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <sys/stat.h>
 #include <sys/statvfs.h>
-#include <unistd.h>
 
 #include "alloc-util.h"
 #include "coredump-vacuum.h"
index b8ba77e6ae3f2ad7bee7222aac87bbba1d4b49f2..fafee11482e27d2f1777e7324a9482e2c00f5d0a 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include <elf.h>
 #include <stdio.h>
-#include <sys/auxv.h>
 #include <sys/mount.h>
 #include <sys/prctl.h>
 #include <sys/statvfs.h>
index 2dc2494556665b7bbed62cd1562e387102db0060..337472f276819da19adeda7e7ac8c3c18cb4aa9f 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <getopt.h>
-#include <sys/prctl.h>
 #include <unistd.h>
 
 #include "alloc-util.h"
index f7de15e92f2d07b5116d54cb220ce8ec2e9f28c3..14319413f0c9569f5d970626aad17bf540674183 100644 (file)
@@ -6,8 +6,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/file.h>
-#include <sys/ioctl.h>
-#include <sys/mount.h>
 
 #include "sd-device.h"
 
index 48c0b163b8ef7fa6327fc77ccc56b2d007e3c12f..6ba7d4ba9219d24c050777f2948188d43329caf4 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <fcntl.h>
 #include <getopt.h>
-#include <linux/loop.h>
 #include <unistd.h>
 
 #include "sd-bus.h"
@@ -51,7 +50,6 @@
 #include "terminal-util.h"
 #include "time-util.h"
 #include "tmpfile-util-label.h"
-#include "umask-util.h"
 #include "user-util.h"
 #include "vconsole-util.h"
 
index da37ace7d1e50568ef328fc45e649ef531b94c0c..a41427ab4dcf6c8578b1625b9a81b410d1a0f3e1 100644 (file)
@@ -5,7 +5,6 @@
 
 #include <fcntl.h>
 #include <sys/file.h>
-#include <sys/prctl.h>
 #include <sys/stat.h>
 #include <unistd.h>
 
index 8b2fd590201721244a5864b475241fbfaa7c6bdc..1f8d845c6f5fa5af313b912d25904b144f66f968 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <sys/file.h>
-#include <unistd.h>
 
 #include "sd-id128.h"
 
index 6ba7bce6e7bbbf38fd44122341995b795eb9483e..d991b82d67ce606453baa67443d7de74a74474a3 100644 (file)
@@ -2,9 +2,6 @@
 
 #include <fcntl.h>
 #include <getopt.h>
-#include <linux/magic.h>
-#include <sys/ioctl.h>
-#include <sys/mount.h>
 #include <sys/vfs.h>
 
 #include "alloc-util.h"
index 26f090f1db91b61998862ff269a9272b6b764a05..3378bd3d7050861ffce6c524ef7794e78092bce9 100644 (file)
@@ -2,9 +2,7 @@
 
 #include <fcntl.h>
 #include <sys/file.h>
-#include <sys/prctl.h>
 #include <sys/stat.h>
-#include <unistd.h>
 
 #include "alloc-util.h"
 #include "blockdev-util.h"
index 72467704790f9bf54e5ee31f00dc437c5cd54eb4..38724b530315b030c1f4a86ce8b95ee2d8561770 100644 (file)
@@ -14,6 +14,7 @@
 #include "bus-common-errors.h"
 #include "bus-get-properties.h"
 #include "bus-log-control-api.h"
+#include "bus-object.h"
 #include "bus-polkit.h"
 #include "bus-util.h"
 #include "constants.h"
index 60f26b5ddc910d6a6cbf68809a3cfbe6c8d9edb6..56c91b734fa87cf3b4f1e26d391ea730121793b2 100644 (file)
@@ -1,8 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <stdlib.h>
-#include <sys/stat.h>
-#include <unistd.h>
 
 #include "alloc-util.h"
 #include "fd-util.h"
index cd7837ed89e57cb31b59e7c7a4a55104ea7dac54..aed34b39d07ead8f576768fbfb5777ac0d9d066a 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <getopt.h>
-#include <unistd.h>
 
 #include "alloc-util.h"
 #include "ask-password-api.h"
index 4a62e063b1c8afb2ff6341933fd8eff6da57d9f8..11d9130bbca3973aab2138f5629292c3c3d582f1 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <sys/stat.h>
-#include <unistd.h>
 
 #include "sd-bus.h"
 #include "sd-event.h"
@@ -10,6 +9,7 @@
 #include "bus-error.h"
 #include "bus-locator.h"
 #include "bus-log-control-api.h"
+#include "bus-object.h"
 #include "bus-polkit.h"
 #include "bus-unit-util.h"
 #include "bus-util.h"
@@ -23,7 +23,6 @@
 #include "service-util.h"
 #include "string-util.h"
 #include "strv.h"
-#include "time-util.h"
 
 static int vconsole_reload(sd_bus *bus) {
         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
index fdd98d7936fd7da88c7ec3edf1baa028228e84c7..6fb49c70a145fdd168421df8ed0142f08f52bdab 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <stdlib.h>
-#include <sys/wait.h>
 
 #include "sd-daemon.h"
 
index d932169e56adaf6030b65c7d0d46835ef0dbc312..44cc7ce1f235aa2b21300557e0076e04f802e762 100644 (file)
@@ -25,7 +25,6 @@
 #include "loop-util.h"
 #include "main-func.h"
 #include "memory-util.h"
-#include "missing_syscall.h"
 #include "namespace-util.h"
 #include "nsresource.h"
 #include "nulstr-util.h"
index ab3086ad76e4df5442b50f55ecb8c330bfadc63b..de93cd33f9040ef4cbc19f9818bbc6893ba65b66 100644 (file)
@@ -1,8 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <stdlib.h>
-#include <sys/mount.h>
-#include <sys/wait.h>
 
 #include "sd-daemon.h"
 
index e283593bf7f39e4e4a7cf445a85f554ba294b8f5..5196a338de0a43b95c5e789ff4b76adfce678f6a 100644 (file)
@@ -7,9 +7,8 @@
 #include <net/if.h>
 #include <poll.h>
 #include <sys/eventfd.h>
-#include <sys/mount.h>
+#include <sys/ioctl.h>
 #include <sys/stat.h>
-#include <sys/wait.h>
 #include <utmpx.h>
 
 #include "sd-daemon.h"
index e082dce2437237b7566830d1df1cb25dcfe1fbfd..f85119a2657a769806b9c6dfa3c12d52f4f20ed7 100644 (file)
@@ -1,13 +1,10 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <sys/stat.h>
-#include <sched.h>
-#include <sys/mount.h>
 
 #include "bpf-dlopen.h"
 #include "bpf-link.h"
 #include "fd-util.h"
-#include "fs-util.h"
 #include "log.h"
 #include "lsm-util.h"
 #include "mkdir.h"
index 021035ab85c6d47aec461e680b9b694707840a6f..8972da0802f05a8e12a40f93950bd2c1ac571013 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <fcntl.h>
-#include <sys/stat.h>
 #include <unistd.h>
 
 #include "sd-bus.h"
index 5784d3ab1512da89bb526afc2cb2b84903913881..cafef9fdb81e6a1e5907e92a0d6f0ca14a85084f 100644 (file)
@@ -3,7 +3,6 @@
 
 #include "sd-bus-vtable.h"
 
-#include "bus-object.h"
 #include "portabled-forward.h"
 
 int bus_image_common_get_os_release(Manager *m, sd_bus_message *message, const char *name_or_path, Image *image, sd_bus_error *error);
index b9c880992d5d35748c20ad791a12215d11493ee9..f0521ab95e80c03870b52baf06e5ccad384788fd 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "alloc-util.h"
 #include "bus-log-control-api.h"
+#include "bus-object.h"
 #include "bus-util.h"
 #include "common-signal.h"
 #include "constants.h"
 #include "log.h"
 #include "main-func.h"
 #include "portabled.h"
-#include "portabled-image-bus.h"
 #include "service-util.h"
 #include "signal-util.h"
-#include "time-util.h"
 
 static Manager* manager_unref(Manager *m);
 DEFINE_TRIVIAL_CLEANUP_FUNC(Manager*, manager_unref);
index c7ce2479555d4e9039cefd4c83d451343de0d950..1fe41cdd1a5f7c3664d52cd08c8ead0d826d09b4 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include "bus-object.h"
 #include "list.h"
 #include "portabled-forward.h"
 #include "runtime-scope.h"
index 028d1b50ea8d97583ddec3e3d262a137e12b2b7b..8e20add1444648e7388a97f4a465e1b03f40d547 100644 (file)
@@ -5,9 +5,6 @@
 /* Generally speaking, the pstore contains a small number of files
  * that in turn contain a small amount of data.  */
 #include <stdio.h>
-#include <stdio_ext.h>
-#include <sys/prctl.h>
-#include <sys/xattr.h>
 #include <unistd.h>
 
 #include "sd-journal.h"
index 4daa19093db8a5014766dc6496b041c722223868..3451f63ef2b33daa563b1a83343cb3f46e3c9272 100644 (file)
@@ -1,6 +1,5 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <sys/prctl.h>
 #include <sys/stat.h>
 #include <unistd.h>
 
index deb78d991919e71199f0b902a9e42b754e5d156a..536d1b037dabe3c8d449a6a0fa41169f8099b25a 100644 (file)
@@ -2,9 +2,7 @@
 
 #include <fcntl.h>
 #include <getopt.h>
-#include <linux/random.h>
 #include <stdlib.h>
-#include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <sys/xattr.h>
 #include <unistd.h>
index 83f6e2f337d567621c87b6fd727ef2d150a1fb3d..36bc6b7ef20823dafa1239c5929fe8e7054d6c08 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <mntent.h>
-#include <sys/prctl.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
 #include <unistd.h>
index c8cb286cb7a2f9ff6a583741f143448318afb39c..210e6da2707fcd9255b892274beb2b8a92a42a15 100644 (file)
@@ -1,12 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#if HAVE_VALGRIND_MEMCHECK_H
-#include <valgrind/memcheck.h>
-#endif
-
 #include <fcntl.h>
 #include <getopt.h>
-#include <linux/loop.h>
 #include <sys/file.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
index d0f1afe5e62e16b075fc27fef7d54a863e1c2db2..ed63927fa69175462f0b9723d194f685e466c188 100644 (file)
@@ -1,7 +1,5 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <sys/un.h>
-
 #include "fd-util.h"
 #include "fileio.h"
 #include "log.h"
index 28f35d156caf0ca8468e6c9f21c55f727a8c48d7..23c9c83a844e7ccac609aa3c0bce7964099695bc 100644 (file)
@@ -5,7 +5,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/resource.h>
-#include <sys/stat.h>
 
 #include "sd-bus.h"
 #include "sd-daemon.h"
index aa50299694f83fb29be0366ed0425601203ca817..441172e521f56e9fcea614658d8af5c62179f763 100644 (file)
@@ -5,7 +5,6 @@
 
 #include <linux/loop.h>
 #include <sys/ioctl.h>
-#include <unistd.h>
 
 #if HAVE_VALGRIND_MEMCHECK_H
 #include <valgrind/memcheck.h>
index be24bc20ba89542f857b157f50785d904d03cb1d..d65a876e39f83cac7dee57226e7c30ac014b3d81 100644 (file)
@@ -6,7 +6,6 @@
 #include <linux/major.h>
 #include <linux/raid/md_u.h>
 #include <sys/ioctl.h>
-#include <unistd.h>
 
 #include "sd-device.h"
 
index 2bb456e087745c0f1922d3ee70299695bf1d6414..5f8f9d5754af96f703e751721fcba3646bc70505 100644 (file)
@@ -5,11 +5,11 @@
 
 #include <fcntl.h>
 #include <sys/mount.h>
-#include <sys/stat.h>
 #include <unistd.h>
 
 #include "alloc-util.h"
 #include "chase.h"
+#include "constants.h"
 #include "dirent-util.h"
 #include "errno-util.h"
 #include "fd-util.h"
@@ -29,7 +29,6 @@
 #include "signal-util.h"
 #include "stat-util.h"
 #include "string-util.h"
-#include "time-util.h"
 #include "umount.h"
 #include "virt.h"
 
index 546d0b6ee11e87baeeb06e44449fd7a9bd419407..2985223a944ab7024ca76ab70eeac44d058374ae 100644 (file)
@@ -13,6 +13,7 @@
 #include "parse-util.h"
 #include "siphash24.h"
 #include "string-util.h"
+#include "time-util.h"
 
 #define DISCHARGE_RATE_FILEPATH "/var/lib/systemd/sleep/battery_discharge_percentage_rate_per_hour"
 #define BATTERY_DISCHARGE_RATE_HASH_KEY SD_ID128_MAKE(5f,9a,20,18,38,76,46,07,8d,36,58,0b,bb,c4,e0,63)
index df7b06ce5a1945eb15a53db254edc43dd87d17cd..8f4f4ac2e7c5a57bd2d1b1de80fd8936e91a1412 100644 (file)
@@ -2,7 +2,6 @@
 #pragma once
 
 #include "hashmap.h"
-#include "time-util.h"
 
 int fetch_batteries_capacity_by_name(Hashmap **ret_current_capacity);
 int get_capacity_by_name(Hashmap *capacities_by_name, const char *name);
index 3bbfdbadaf0ec4cafd3e09010765b28d4acf797e..03375a942a84d59f70c1ce3fa6fdb551c8e5c4ca 100644 (file)
@@ -10,7 +10,6 @@
 #include <stdlib.h>
 #include <sys/timerfd.h>
 #include <sys/utsname.h>
-#include <unistd.h>
 
 #include "sd-bus.h"
 #include "sd-device.h"
index 1b3422ae80a1c04976437cf70b8a6d75600d4ec9..56804179731c7aca334e6c162f111a690e8d25a7 100644 (file)
@@ -7,6 +7,7 @@
 #include "hashmap.h"
 #include "log.h"
 #include "tests.h"
+#include "time-util.h"
 
 TEST(fetch_batteries_capacity_by_name) {
         _cleanup_hashmap_free_ Hashmap *capacity = NULL;
index 8bca1326a0ee5743be1db3c9e25642c83ff7224f..ada289ded3e8a8d5d6ceb7d7b5e5ce9d9a34e17f 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <getopt.h>
 #include <sys/epoll.h>
-#include <sys/prctl.h>
 #include <sys/wait.h>
 #include <unistd.h>
 
index 93f186b287799f6b4aff1eaa99c7cf5a3203b855..d15f82d61b45ef63d9d1e444e9a5c969485ccb0e 100644 (file)
@@ -4,7 +4,6 @@
 #include <getopt.h>
 #include <netdb.h>
 #include <stdio.h>
-#include <sys/un.h>
 #include <unistd.h>
 
 #include "sd-daemon.h"
index 55ad498b7d256656dab51a5f34f1459552a54a7c..1ab4acc9c51e03c35f2c650ef40a24a96b546849 100644 (file)
@@ -1,7 +1,5 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <fcntl.h>
-#include <sys/ioctl.h>
 #include <unistd.h>
 
 #include "alloc-util.h"
index 04f99dbd57348cff622ba7ca2a44a11e6b26c06b..38f647791414357b49810ad20f84450649dee75a 100644 (file)
@@ -1,6 +1,5 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <net/if_arp.h>
 #include <unistd.h>
 
 #include "sd-varlink.h"
index 8678c6fee036a450614fb5c83b06312491dbc043..d074f6b543d964fb7baf7d2a6cb31fc02c802d5c 100644 (file)
@@ -3,8 +3,6 @@
   Copyright © 2017 Felipe Sateler
 ***/
 
-#include <sys/prctl.h>
-
 #include "sd-bus.h"
 
 #include "alloc-util.h"
index 188b368c4122eacca3c5963543581db7665c8c77..61d4195912d074799ef37c3334087b2ddf39e817 100644 (file)
@@ -35,7 +35,6 @@
 #include "log.h"
 #include "loop-util.h"
 #include "main-func.h"
-#include "missing_magic.h"
 #include "mkdir.h"
 #include "mount-util.h"
 #include "mountpoint-util.h"
index 40bba14a3162db7a8065a92a99a1931c09587a3b..3a75e6a33edaed8eb478709857af2e49d4728f25 100644 (file)
@@ -17,6 +17,7 @@
 #include "bus-log-control-api.h"
 #include "bus-map-properties.h"
 #include "bus-message-util.h"
+#include "bus-object.h"
 #include "bus-polkit.h"
 #include "bus-unit-util.h"
 #include "bus-util.h"
index 5821a23e95666798cf31aab0db603ac5d21ac9fb..032b1e3381b17bd3ea7a0dd59674f127da1c2b8b 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <getopt.h>
 #include <sys/stat.h>
-#include <unistd.h>
 
 #include "sd-messages.h"
 
index cc29be102080600020e82b2a36ed4f399826eef8..3aefc898eeab047d72cad62d88502ee51efd335a 100644 (file)
@@ -10,7 +10,6 @@
 #include <sys/prctl.h>
 #include <sys/signalfd.h>
 #include <sys/stat.h>
-#include <sys/un.h>
 #include <sys/wait.h>
 #include <unistd.h>
 
index f802ed32e9737fad212955b63041d642fd0c114a..3e5dfd29eee1397ac8a8e59eb93a51203a5b9c86 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <getopt.h>
 #include <sys/stat.h>
-#include <unistd.h>
 
 #include "alloc-util.h"
 #include "chase.h"
index b80f10cd339787a64f2ebb1cf4431ee0e0c3bc8e..8c7a83ccb62449daa46282e8ee73f5144789b244 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <sys/stat.h>
-#include <unistd.h>
 
 #if HAVE_AUDIT
 #  include <libaudit.h>
index 4b05e40534da6e76bb1f2dea894dcdec9df20191..faf37602af771fc590ac751b9aa6076f9f79a785 100644 (file)
@@ -1,8 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <fcntl.h>
 #include <sys/stat.h>
-#include <unistd.h>
 
 #include "fs-util.h"
 #include "label-util.h"
index 48bd37ef5003e3ebfe21e653a1138a872a9195d9..7815930f9b4346ddf6de6f3f4888e9ae5ba0376b 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <stdlib.h>
-#include <sys/wait.h>
 
 #include "sd-daemon.h"
 
index d1e296081c1811b4a76bb3e40413cb4315cd5325..0282cc37dcde71280c6d9f3207eabbe7968e2af4 100644 (file)
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <poll.h>
-#include <sys/wait.h>
 
 #include "sd-daemon.h"
 #include "sd-varlink.h"
index 2c89d212822ddc103be76aa75752863efa63b7d1..024a0fd3a21a5572e458b650ddc61fa4dc9d2ab9 100644 (file)
@@ -7,7 +7,6 @@
 #include <linux/kd.h>
 #include <linux/tiocl.h>
 #include <linux/vt.h>
-#include <sys/file.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <sysexits.h>
index 5d863e11897d327444e89e1860a66ab8bb198e2c..4a79fa1b331af048fc17786b54ad437a828b5ff3 100644 (file)
@@ -1,8 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <stdlib.h>
-#include <sys/stat.h>
-#include <unistd.h>
 
 #include "sd-id128.h"
 
index 8a3b2f1b08678d143c2493c179243ed1bcbe619d..2e794e45b1689e5f19e500bf365f3a90021294b1 100644 (file)
@@ -1,8 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <getopt.h>
-#include <linux/if.h>
-#include <net/if.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index c7b9a1c70af3bdbc1ae061d46b2f1c90c8f0b4ad..6bde82fd1dcfbed948feae1b2ece5a4f80df67d1 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <stdlib.h>
 #include <sys/stat.h>
-#include <unistd.h>
 
 #include "alloc-util.h"
 #include "dirent-util.h"
index dbf9087304c6f7749ebff83d35db77ca9aed7562..8a752c81009533edfb9777ec1538b75d94a192c4 100644 (file)
@@ -1,8 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <fnmatch.h>
 #include <stdio.h>
-#include <unistd.h>
 
 #include "alloc-util.h"
 #include "conf-parser.h"