diff options
| author | Amos Kong | 2014-04-28 07:53:49 +0200 |
|---|---|---|
| committer | Luiz Capitulino | 2014-05-08 20:19:58 +0200 |
| commit | cb45de6798956975c4b13a6233f7a00d2239b61a (patch) | |
| tree | e39974a4bb81e0158c40c46c8a43548a21320f3d /include/monitor | |
| parent | qapi: Add a primitive to include other files from a QAPI schema file (diff) | |
| download | qemu-cb45de6798956975c4b13a6233f7a00d2239b61a.tar.gz qemu-cb45de6798956975c4b13a6233f7a00d2239b61a.tar.xz qemu-cb45de6798956975c4b13a6233f7a00d2239b61a.zip | |
qapi: treat all negative return of strtosz_suffix() as error
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 <akong@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'include/monitor')
0 files changed, 0 insertions, 0 deletions
