Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx> --- src/connect.c | 1 - src/domain.c | 1 + src/domain.h | 1 - src/events.c | 1 + src/events.h | 3 --- src/main.c | 2 ++ src/util.c | 2 ++ src/util.h | 2 -- 8 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/connect.c b/src/connect.c index 45fb2ae..e93111f 100644 --- a/src/connect.c +++ b/src/connect.c @@ -3,7 +3,6 @@ #include "connect.h" #include "util.h" -#include <errno.h> #include <stdbool.h> #include <stdlib.h> diff --git a/src/domain.c b/src/domain.c index c9365a4..8e6489a 100644 --- a/src/domain.c +++ b/src/domain.c @@ -3,6 +3,7 @@ #include "domain.h" #include "util.h" +#include <libvirt/libvirt.h> #include <stdio.h> static int diff --git a/src/domain.h b/src/domain.h index 5ce592c..03a29ed 100644 --- a/src/domain.h +++ b/src/domain.h @@ -2,7 +2,6 @@ #include "connect.h" -#include <libvirt/libvirt.h> #include <systemd/sd-bus.h> #define VIRT_DBUS_DOMAIN_INTERFACE "org.libvirt.Domain" diff --git a/src/events.c b/src/events.c index 0ece3ab..c45acd7 100644 --- a/src/events.c +++ b/src/events.c @@ -3,6 +3,7 @@ #include "util.h" #include <assert.h> +#include <libvirt/libvirt.h> #include <systemd/sd-bus.h> static int diff --git a/src/events.h b/src/events.h index f588c85..c234c55 100644 --- a/src/events.h +++ b/src/events.h @@ -2,8 +2,5 @@ #include "connect.h" -#include <libvirt/libvirt.h> - - void virtDBusEventsRegister(virtDBusConnect *connect); diff --git a/src/main.c b/src/main.c index 5dca7fb..6f11aab 100644 --- a/src/main.c +++ b/src/main.c @@ -8,8 +8,10 @@ #include <poll.h> #include <stdbool.h> #include <stdio.h> +#include <stdlib.h> #include <sys/signalfd.h> #include <systemd/sd-bus.h> +#include <unistd.h> static int loop_status; diff --git a/src/util.c b/src/util.c index 0d4d0e3..9042a0f 100644 --- a/src/util.c +++ b/src/util.c @@ -1,6 +1,8 @@ #include "util.h" #include <libvirt/virterror.h> +#include <stdlib.h> +#include <unistd.h> int virtDBusUtilMessageAppendTypedParameters(sd_bus_message *message, diff --git a/src/util.h b/src/util.h index c92674f..2a6f7e2 100644 --- a/src/util.h +++ b/src/util.h @@ -1,9 +1,7 @@ #pragma once #include <libvirt/libvirt.h> -#include <stdlib.h> #include <systemd/sd-bus.h> -#include <unistd.h> #define VIRT_DBUS_ERROR_INTERFACE "org.libvirt.Error" -- 2.14.3 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list