Re: [Qemu-devel] [PATCH v2] qapi: treat all negative return of strtosz_suffix() as error

2014-05-05 Thread Luiz Capitulino
On Mon, 28 Apr 2014 13:53:49 +0800 Amos Kong ak...@redhat.com wrote: strtosz_suffix() might return negative error, this patch fixes the error handling. This patch also changes to handle error in the if statement rather than handle success specially, this will make this use of

[Qemu-devel] [PATCH v2] qapi: treat all negative return of strtosz_suffix() as error

2014-04-27 Thread Amos Kong
strtosz_suffix() might return negative error, this patch fixes the error handling. This patch also changes to handle error in the if statement rather than handle success specially, this will make this use of strtosz_suffix consistent with all other uses. Signed-off-by: Amos Kong ak...@redhat.com