X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qemu-img.c;h=d0210825cebc65fb284b203b5a081dfedfb372a1;hb=3b46e6242767a2c770c0aba0a6595e9511623c92;hp=aa3d719a862e7eff56ef63a2e2d2a841e7bd1ab4;hpb=ef18c8839e85341cc63467f92c35f981858a6fe5;p=mirror_qemu.git diff --git a/qemu-img.c b/qemu-img.c index aa3d719a86..d0210825ce 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -168,7 +168,7 @@ static void term_init(void) tty.c_cflag |= CS8; tty.c_cc[VMIN] = 1; tty.c_cc[VTIME] = 0; - + tcsetattr (0, TCSANOW, &tty); atexit(term_exit); @@ -250,7 +250,7 @@ static int img_create(int argc, char **argv) int64_t size; const char *p; BlockDriver *drv; - + flags = 0; for(;;) { c = getopt(argc, argv, "b:f:he6"); @@ -461,7 +461,7 @@ static int img_convert(int argc, char **argv) if (optind >= argc) help(); out_filename = argv[optind++]; - + bs = bdrv_new_open(filename, fmt); drv = bdrv_find_format(out_fmt); @@ -484,7 +484,7 @@ static int img_convert(int argc, char **argv) error("Error while formatting '%s'", out_filename); } } - + out_bs = bdrv_new_open(out_filename, out_fmt); if (flags && BLOCK_FLAG_COMPRESS) {