diff options
author | Amos Kong <akong@redhat.com> | 2014-04-28 13:53:49 +0800 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-05-08 14:19:58 -0400 |
commit | cb45de6798956975c4b13a6233f7a00d2239b61a (patch) | |
tree | e39974a4bb81e0158c40c46c8a43548a21320f3d /Makefile | |
parent | a719a27c824ea5e70f5bf6f3c8d13a8c1d6b1bfe (diff) |
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 'Makefile')
0 files changed, 0 insertions, 0 deletions