aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-02-07 16:50:17 +0000
committerIan Campbell <ian.campbell@citrix.com>2012-02-07 16:50:17 +0000
commit914e61c1ec5a7996a3e71692ce41e77359e70e0c (patch)
tree8f761d3eeb27ea8944562f679e35dedec7377dbd /tools
parent8cbb5278e034e5d7878f7a6a7d6987e5a7acf986 (diff)
downloadxen-914e61c1ec5a7996a3e71692ce41e77359e70e0c.tar.gz
xen-914e61c1ec5a7996a3e71692ce41e77359e70e0c.tar.bz2
xen-914e61c1ec5a7996a3e71692ce41e77359e70e0c.zip
xl: Drop -l option to xl cpupool-list
The implementation (which was a nop) was removed back in 22838:aab67c1c6b87 but this now causes "set but not used" warnings from some compilers. Might as well just nuke the option entirely. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Juergen Gross <juergen.gross@ts.fujitsu.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/libxl/xl_cmdimpl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index 0b811b5b45..70f9848f36 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -5585,11 +5585,9 @@ int main_cpupoollist(int argc, char **argv)
int option_index = 0;
static struct option long_options[] = {
{"help", 0, 0, 'h'},
- {"long", 0, 0, 'l'},
{"cpus", 0, 0, 'c'},
{0, 0, 0, 0}
};
- int opt_long = 0;
int opt_cpus = 0;
const char *pool = NULL;
libxl_cpupoolinfo *poolinfo;
@@ -5599,7 +5597,7 @@ int main_cpupoollist(int argc, char **argv)
int ret = 0;
while (1) {
- opt = getopt_long(argc, argv, "hlc", long_options, &option_index);
+ opt = getopt_long(argc, argv, "hc", long_options, &option_index);
if (opt == -1)
break;
@@ -5607,9 +5605,6 @@ int main_cpupoollist(int argc, char **argv)
case 'h':
help("cpupool-list");
return 0;
- case 'l':
- opt_long = 1;
- break;
case 'c':
opt_cpus = 1;
break;