qemu-img: fix img_commit() error return value
commita3981eb978b76e75aca3d04f6c6e26de8322001b
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 26 Aug 2014 18:17:54 +0000 (26 19:17 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 29 Aug 2014 09:46:57 +0000 (29 10:46 +0100)
treed180dcaccd6945d42f34cba63746f8ebbec2a355
parent212aefaa53d142baa9a22f5aadd2e72eb916c0c0
qemu-img: fix img_commit() error return value

The img_commit() return value is a process exit code.  Use 1 for failure
instead of -1.  The other failure paths in this function already use 1.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
qemu-img.c