X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=cat%2Fvirt-cat.c;h=834d490cf4460c6b60c8b6bd2a4f1065fbcca91e;hb=2a9e345090ceeae5bdab68407bf1133c040c4f45;hp=ebae8952216af9ff7fc9a08ef262b1d804f42762;hpb=b875f8e115842b37e6c7c9e59cb263a1cbb334aa;p=libguestfs.git diff --git a/cat/virt-cat.c b/cat/virt-cat.c index ebae895..834d490 100644 --- a/cat/virt-cat.c +++ b/cat/virt-cat.c @@ -34,6 +34,7 @@ guestfs_h *g; int read_only = 1; +int live = 0; int verbose = 0; int keys_from_stdin = 0; int echo_keys = 0; @@ -104,11 +105,9 @@ main (int argc, char *argv[]) }; struct drv *drvs = NULL; struct drv *drv; - char *p, *file = NULL; const char *format = NULL; int c; int option_index; - int next_prepared_drive = 1; g = guestfs_create (); if (g == NULL) { @@ -215,6 +214,7 @@ main (int argc, char *argv[]) */ assert (read_only == 1); assert (inspector == 1); + assert (live == 0); /* User must specify at least one filename on the command line. */ if (optind >= argc || argc - optind < 1)