[libvirt] [PATCH 1/4] lxc: remove duplicate header files

Mao Zhongyi posted 4 patches 6 years, 3 months ago
[libvirt] [PATCH 1/4] lxc: remove duplicate header files
Posted by Mao Zhongyi 6 years, 3 months ago
"#include vircgroup.h" appears in both lxc_cgroup.h and
lxc_cgroup.c, and lxc_cgroup.c contains lxc_cgroup.h,
so remove the duplicate declarations.

Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
---
 src/lxc/lxc_cgroup.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/lxc/lxc_cgroup.c b/src/lxc/lxc_cgroup.c
index 5efb495b56..0a019dc813 100644
--- a/src/lxc/lxc_cgroup.c
+++ b/src/lxc/lxc_cgroup.c
@@ -27,7 +27,6 @@
 #include "virerror.h"
 #include "virlog.h"
 #include "viralloc.h"
-#include "vircgroup.h"
 #include "virstring.h"
 #include "virsystemd.h"
 
-- 
2.17.1



--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH 1/4] lxc: remove duplicate header files
Posted by Ján Tomko 6 years, 3 months ago
On Wed, Oct 30, 2019 at 11:42:10AM +0800, Mao Zhongyi wrote:
>"#include vircgroup.h" appears in both lxc_cgroup.h and
>lxc_cgroup.c, and lxc_cgroup.c contains lxc_cgroup.h,
>so remove the duplicate declarations.
>
>Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
>Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
>---
> src/lxc/lxc_cgroup.c | 1 -
> 1 file changed, 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list