From 946be29c98e1797f2e0912c5f2da31ee3816ee58 Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Tue, 23 Dec 2014 10:38:50 -0800 Subject: [PATCH] bus: remove spurious include of They do not use any functions from libcap directly. The CAP_SYS_ADMIN constant in use by bus-objects.c comes from imported through "missing.h". The "missing.h" header is imported through "util.h" which gets imported in "bus-util.h". Tested that everything builds cleanly after this change. --- src/libsystemd/sd-bus/bus-objects.c | 2 -- src/libsystemd/sd-bus/bus-util.c | 1 - 2 files changed, 3 deletions(-) diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c index 6162d12c1..e64743fa5 100644 --- a/src/libsystemd/sd-bus/bus-objects.c +++ b/src/libsystemd/sd-bus/bus-objects.c @@ -19,8 +19,6 @@ along with systemd; If not, see . ***/ -#include - #include "strv.h" #include "set.h" #include "bus-internal.h" diff --git a/src/libsystemd/sd-bus/bus-util.c b/src/libsystemd/sd-bus/bus-util.c index 389b6ad71..2c3da3ce9 100644 --- a/src/libsystemd/sd-bus/bus-util.c +++ b/src/libsystemd/sd-bus/bus-util.c @@ -20,7 +20,6 @@ ***/ #include -#include #include "systemd/sd-daemon.h" -- 2.30.2