qemu-img: Fix type of getopt return value (Kevin Wolf)