Skip to contentSkip to conversation

tools: remove duplicate #includes

PATCH In review Matthew Daley 2 participants 3 messages Dec 5, 2013 – Mar 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: remove duplicate #includes

(From first party code; ie. not including tdb)

---
Build-tested.

 tools/console/client/main.c       |    1 -
 tools/libxc/xc_flask.c            |    1 -
 tools/xcutils/xc_save.c           |    1 -
 tools/xenstore/xenstored_domain.c |    1 -
 4 files changed, 4 deletions(-)
tools/console/client/main.c +0 -1
index 38c856a..95c2e02 100644
@@ -33,7 +33,6 @@
 #include <getopt.h>
 #include <sys/select.h>
 #include <err.h>
-#include <errno.h>
 #include <string.h>
 #ifdef __sun__
 #include <sys/stropts.h>
tools/libxc/xc_flask.c +0 -1
index 4294a25..b73d0cc 100644
@@ -28,7 +28,6 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <sys/ioctl.h>
-#include <stdint.h>
 
 #define OCON_ISID    0    /* initial SIDs */
 #define OCON_PIRQ    1    /* physical irqs */
tools/xcutils/xc_save.c +0 -1
index e34bd2c..846e88f 100644
@@ -17,7 +17,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <err.h>
 
 #include <xenstore.h>
 #include <xenctrl.h>
tools/xenstore/xenstored_domain.c +0 -1
index f24bd6b..6cbd428 100644
@@ -22,7 +22,6 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <xenctrl.h>
 
 #include "utils.h"
 #include "talloc.h"
Signature · 1 line
1.7.10.4
#1 lore raw

I'm assuming this is for 4.5, like the other #include change.

Quoted 60 lines · Matthew Daley

(From first party code; ie. not including tdb)

---
Build-tested.

 tools/console/client/main.c       |    1 -
 tools/libxc/xc_flask.c            |    1 -
 tools/xcutils/xc_save.c           |    1 -
 tools/xenstore/xenstored_domain.c |    1 -
 4 files changed, 4 deletions(-)
tools/console/client/main.c +0 -1
index 38c856a..95c2e02 100644
@@ -33,7 +33,6 @@
 #include <getopt.h>
 #include <sys/select.h>
 #include <err.h>
-#include <errno.h>
 #include <string.h>
 #ifdef __sun__
 #include <sys/stropts.h>
tools/libxc/xc_flask.c +0 -1
index 4294a25..b73d0cc 100644
@@ -28,7 +28,6 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <sys/ioctl.h>
-#include <stdint.h>
 
 #define OCON_ISID    0    /* initial SIDs */
 #define OCON_PIRQ    1    /* physical irqs */
tools/xcutils/xc_save.c +0 -1
index e34bd2c..846e88f 100644
@@ -17,7 +17,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <err.h>
 
 #include <xenstore.h>
 #include <xenctrl.h>
tools/xenstore/xenstored_domain.c +0 -1
index f24bd6b..6cbd428 100644
@@ -22,7 +22,6 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <xenctrl.h>
 
 #include "utils.h"
 #include "talloc.h"