qga: fix erroneous argument to strerror
commit47b0c3f2f5dd7dea486aa023a007cb2442da0676
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Jan 2017 14:52:10 +0000 (4 15:52 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 24 Jan 2017 20:26:53 +0000 (24 23:26 +0300)
treef3fdb1becb7b6d93c46113809ec543192cd90586
parent7ad2757feffd13b8000826ae3df2a3bc929d688d
qga: fix erroneous argument to strerror

process_command returns a negative value in case of error.  Make this
clear in the "if" statement and fix the strerror argument to flip it
to positive.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
qga/main.c