Revision 3b46e624 qemu-img.c

b/qemu-img.c
168 168
    tty.c_cflag |= CS8;
169 169
    tty.c_cc[VMIN] = 1;
170 170
    tty.c_cc[VTIME] = 0;
171
   
171

  
172 172
    tcsetattr (0, TCSANOW, &tty);
173 173

  
174 174
    atexit(term_exit);
......
250 250
    int64_t size;
251 251
    const char *p;
252 252
    BlockDriver *drv;
253
   
253

  
254 254
    flags = 0;
255 255
    for(;;) {
256 256
        c = getopt(argc, argv, "b:f:he6");
......
461 461
    if (optind >= argc)
462 462
        help();
463 463
    out_filename = argv[optind++];
464
   
464

  
465 465
    bs = bdrv_new_open(filename, fmt);
466 466

  
467 467
    drv = bdrv_find_format(out_fmt);
......
484 484
            error("Error while formatting '%s'", out_filename);
485 485
        }
486 486
    }
487
   
487

  
488 488
    out_bs = bdrv_new_open(out_filename, out_fmt);
489 489

  
490 490
    if (flags && BLOCK_FLAG_COMPRESS) {

Also available in: Unified diff