]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tools: remove unnecessary includes
authorJán Tomko <jtomko@redhat.com>
Sun, 23 Feb 2020 21:45:34 +0000 (22:45 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 3 Aug 2020 13:30:40 +0000 (15:30 +0200)
After the split of virsh to multiple files, and the subsequent
split to vsh/virt-admin, there are quite a few leftovers.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
20 files changed:
tools/virsh-domain-monitor.c
tools/virsh-domain.c
tools/virsh-host.c
tools/virsh-host.h
tools/virsh-interface.c
tools/virsh-network.c
tools/virsh-nodedev.c
tools/virsh-nwfilter.c
tools/virsh-secret.c
tools/virsh-secret.h
tools/virsh-snapshot.c
tools/virsh-snapshot.h
tools/virsh-volume.c
tools/virsh.h
tools/virt-admin-completer.c
tools/virt-admin.c
tools/virt-host-validate-qemu.c
tools/vsh-table.c
tools/vsh.c
tools/vsh.h

index d8333a2f44661618c157b0ba4d5071ced3cc127b..0111116885ac183b7dfc9f62bcafbb406270e746 100644 (file)
@@ -23,9 +23,7 @@
 #include "virsh-util.h"
 
 #include <libxml/parser.h>
-#include <libxml/tree.h>
 #include <libxml/xpath.h>
-#include <libxml/xmlsave.h>
 
 #include "internal.h"
 #include "conf/virdomainobjlist.h"
index 97d64276386d008d555a1a337a2088fcb4511665..afe0b0f2e01bdbd86347c98fe84af7d25469e9e9 100644 (file)
 
 #include <fcntl.h>
 #include <signal.h>
-#include <sys/time.h>
 
 #include <libxml/parser.h>
-#include <libxml/tree.h>
 #include <libxml/xpath.h>
-#include <libxml/xmlsave.h>
 
 #include "internal.h"
 #include "virbitmap.h"
@@ -50,7 +47,6 @@
 #include "virtime.h"
 #include "virtypedparam.h"
 #include "virxml.h"
-#include "virsh-nodedev.h"
 #include "viruri.h"
 #include "vsh-table.h"
 #include "virenum.h"
index 0fd77cbae59577c3d44fecdb603b61c440d2199b..dab0b92229767182d82534792040f5d42790eba0 100644 (file)
 
 #include <config.h>
 #include "virsh-host.h"
+#include "virsh.h"
 
 #include <libxml/parser.h>
-#include <libxml/tree.h>
 #include <libxml/xpath.h>
-#include <libxml/xmlsave.h>
 
 #include "internal.h"
 #include "virbitmap.h"
-#include "virbuffer.h"
 #include "viralloc.h"
 #include "virxml.h"
-#include "virtypedparam.h"
 #include "virstring.h"
 #include "virfile.h"
 #include "virenum.h"
index f4c2aa316da6f15f7c3316cda24443a4f749c220..92328c7deb35ff34d8b7b4328e0b8d398aa54b14 100644 (file)
@@ -20,6 +20,6 @@
 
 #pragma once
 
-#include "virsh.h"
+#include "vsh.h"
 
 extern const vshCmdDef hostAndHypervisorCmds[];
index d754998d5295b63fda8de433fc26e01f6fc5c988..b8e424091da66ebc8e4bc7baa8e3ae140742ec9f 100644 (file)
 #include "virsh-interface.h"
 
 #include <libxml/parser.h>
-#include <libxml/tree.h>
 #include <libxml/xpath.h>
-#include <libxml/xmlsave.h>
 
 #include "internal.h"
-#include "virbuffer.h"
 #include "viralloc.h"
 #include "virfile.h"
 #include "virmacaddr.h"
 #include "virxml.h"
-#include "virstring.h"
 #include "vsh-table.h"
 
 virInterfacePtr
index b10cd03bccab5df32c57c00d397af2ea537d1e82..f2a5d0973294093cf77c7b91aae21f38bedce715 100644 (file)
 #include "virsh-network.h"
 
 #include "internal.h"
-#include "virbuffer.h"
 #include "viralloc.h"
 #include "virfile.h"
-#include "virstring.h"
 #include "virtime.h"
 #include "conf/network_conf.h"
 #include "vsh-table.h"
index 7f091d7cf821d08fec1521174aad0476211194e0..ff028d377e8e36a841d728bc86cf46ce2630153d 100644 (file)
@@ -22,7 +22,6 @@
 #include "virsh-nodedev.h"
 
 #include "internal.h"
-#include "virbuffer.h"
 #include "viralloc.h"
 #include "virfile.h"
 #include "virstring.h"
index 6e5213dea3ae5c829f2486a7a47dc0501d1a1594..38790b0081170d238f9a1e4a8990dcb3da474310 100644 (file)
@@ -22,7 +22,6 @@
 #include "virsh-nwfilter.h"
 
 #include "internal.h"
-#include "virbuffer.h"
 #include "viralloc.h"
 #include "virfile.h"
 #include "vsh-table.h"
index 7bd0acda58e94ce80de6c5e8f9c1d099b4a638ee..7f1df3009092a79535a002603db8a6f7f7f9fade 100644 (file)
@@ -28,7 +28,6 @@
 #include "virfile.h"
 #include "virutil.h"
 #include "virsecret.h"
-#include "virstring.h"
 #include "virtime.h"
 #include "vsh-table.h"
 #include "virenum.h"
index 6ebe573f8726e6a7f7374995a1024f2089a3c380..eea542c0effca0ca8adc314d486dcfc190929244 100644 (file)
@@ -20,7 +20,7 @@
 
 #pragma once
 
-#include "virsh.h"
+#include "vsh.h"
 
 struct virshSecretEventCallback {
     const char *name;
index 4ac6cb1dcd429fab0a9c69cbd0749b7089f896fd..e3599a3535ca20c0e08e0f5defed90340f0953ba 100644 (file)
@@ -24,9 +24,7 @@
 #include <assert.h>
 
 #include <libxml/parser.h>
-#include <libxml/tree.h>
 #include <libxml/xpath.h>
-#include <libxml/xmlsave.h>
 
 #include "internal.h"
 #include "virbuffer.h"
index 49517a423595299e9637892533726e2fde8ae2cc..66ebc071753dec204a5a1f8e068bfefe18071c38 100644 (file)
@@ -20,6 +20,6 @@
 
 #pragma once
 
-#include "virsh.h"
+#include "vsh.h"
 
 extern const vshCmdDef snapshotCmds[];
index fec8278a5dc320a687988633865be34eec2408bf..e04e2db09624b506a2db3e58badf60298c379611 100644 (file)
@@ -25,9 +25,7 @@
 #include <fcntl.h>
 
 #include <libxml/parser.h>
-#include <libxml/tree.h>
 #include <libxml/xpath.h>
-#include <libxml/xmlsave.h>
 
 #include "internal.h"
 #include "virbuffer.h"
index ef18c7f4218665b0ccf6496f381184795111d052..1b896cd5351689b56e34ff3af4143ae23aac24b2 100644 (file)
@@ -20,9 +20,7 @@
 
 #pragma once
 
-#include <stdarg.h>
 #include <unistd.h>
-#include <sys/stat.h>
 
 #include "internal.h"
 #include "virerror.h"
index 25dacf51d8e8db9dbeeab829d5340da06b6b0370..7201bb71ebf46e41159d2afcdad30a1906f76f51 100644 (file)
@@ -24,7 +24,6 @@
 #include "internal.h"
 #include "virt-admin.h"
 #include "viralloc.h"
-#include "virstring.h"
 
 
 char **
index 563415ef1f3b6258163fc3b47d0ecfaa3e4ecfc1..774661b2ca87b85988bc875dcaa320e61ad7c2b7 100644 (file)
@@ -19,8 +19,9 @@
  */
 
 #include <config.h>
-#include "virt-admin.h"
 
+#include <stdio.h>
+#include <unistd.h>
 #include <getopt.h>
 
 #if WITH_READLINE
@@ -29,6 +30,7 @@
 #endif
 
 #include "internal.h"
+#include "virt-admin.h"
 #include "viralloc.h"
 #include "virerror.h"
 #include "virfile.h"
index ea7f172790ec9fe96e3ab078220cd1ae0d4c4665..f9432f522d39feb982434bf96f532a56736cc234 100644 (file)
@@ -20,7 +20,6 @@
  */
 
 #include <config.h>
-#include <unistd.h>
 
 #include "virt-host-validate-qemu.h"
 #include "virt-host-validate-common.h"
index 60554b7b2f17c39466a7096ee0a3cbf356591ef6..a727ac17b548f3edd0208afe35b8992bf4e5d912 100644 (file)
@@ -28,8 +28,6 @@
 
 #include "viralloc.h"
 #include "virbuffer.h"
-#include "virstring.h"
-#include "virsh-util.h"
 
 #define HEX_ENCODE_LENGTH 4 /* represents length of '\xNN' */
 
index 9701613924b2017951c269ee51146b6c6bd7515c..d34b429c22d0ec3fb4e496c1897eb7f5e24fabbf 100644 (file)
@@ -24,9 +24,7 @@
 #include <assert.h>
 #include <stdarg.h>
 #include <unistd.h>
-#include <sys/time.h>
 #include <fcntl.h>
-#include <time.h>
 #include <sys/stat.h>
 #include <inttypes.h>
 #include <signal.h>
@@ -42,7 +40,6 @@
 #include "virfile.h"
 #include "virthread.h"
 #include "vircommand.h"
-#include "virtypedparam.h"
 #include "virstring.h"
 #include "virutil.h"
 
index 174116b36910172cd9e5bc6db48dc54487707a92..290bb71f3e8cfa1191ecf62bf6d6cf2489681ba9 100644 (file)
@@ -21,8 +21,6 @@
 #pragma once
 
 #include <stdarg.h>
-#include <unistd.h>
-#include <sys/stat.h>
 #ifndef WIN32
 # include <termios.h>
 #endif