xcp-1.6-updates/xen-4.1.hg

changeset 23225:f2543f449a49

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>

xen-unstable changeset: 24703:b611bff9a8fc
Backport-requested-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Ian Campbell <ian.campbell@citrix.com>
date Mon Feb 13 17:57:47 2012 +0000 (2012-02-13)
parents cccd6c68e1b9
children 3b9b0d4003a3
files tools/libxl/xl_cmdimpl.c
line diff
     1.1 --- a/tools/libxl/xl_cmdimpl.c	Thu Feb 02 13:56:13 2012 +0000
     1.2 +++ b/tools/libxl/xl_cmdimpl.c	Mon Feb 13 17:57:47 2012 +0000
     1.3 @@ -5444,11 +5444,9 @@ int main_cpupoollist(int argc, char **ar
     1.4      int option_index = 0;
     1.5      static struct option long_options[] = {
     1.6          {"help", 0, 0, 'h'},
     1.7 -        {"long", 0, 0, 'l'},
     1.8          {"cpus", 0, 0, 'c'},
     1.9          {0, 0, 0, 0}
    1.10      };
    1.11 -    int opt_long = 0;
    1.12      int opt_cpus = 0;
    1.13      const char *pool = NULL;
    1.14      libxl_cpupoolinfo *poolinfo;
    1.15 @@ -5458,7 +5456,7 @@ int main_cpupoollist(int argc, char **ar
    1.16      int ret = 0;
    1.17  
    1.18      while (1) {
    1.19 -        opt = getopt_long(argc, argv, "hlc", long_options, &option_index);
    1.20 +        opt = getopt_long(argc, argv, "hc", long_options, &option_index);
    1.21          if (opt == -1)
    1.22              break;
    1.23  
    1.24 @@ -5466,9 +5464,6 @@ int main_cpupoollist(int argc, char **ar
    1.25          case 'h':
    1.26              help("cpupool-list");
    1.27              return 0;
    1.28 -        case 'l':
    1.29 -            opt_long = 1;
    1.30 -            break;
    1.31          case 'c':
    1.32              opt_cpus = 1;
    1.33              break;