X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=cat%2Fvirt-ls.c;h=e2700d238c3808ebb375e32b9230d51cc85bd361;hb=6e5f64089631622167e60df25ee009ef83df5170;hp=3e789b8232d982df289cfaf86e2f238ab3216d61;hpb=ff99f399f09025eb4c880da8f13d666146dfac7f;p=libguestfs.git diff --git a/cat/virt-ls.c b/cat/virt-ls.c index 3e789b8..e2700d2 100644 --- a/cat/virt-ls.c +++ b/cat/virt-ls.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include "progname.h" @@ -35,6 +36,7 @@ guestfs_h *g; int read_only = 1; +int live = 0; int verbose = 0; int keys_from_stdin = 0; int echo_keys = 0; @@ -227,6 +229,7 @@ main (int argc, char *argv[]) */ assert (read_only == 1); assert (inspector == 1); + assert (live == 0); /* User must specify at least one directory name on the command line. */ if (optind >= argc || argc - optind < 1) @@ -270,7 +273,6 @@ main (int argc, char *argv[]) } else if (mode == 'l') { char *out; - size_t i; if ((out = guestfs_ll (g, dir)) == NULL) errors++;