util/cutils: New qemu_strtosz()
commit466dea14e677555dd24465aca75d00a3537ad062
authorMarkus Armbruster <armbru@redhat.com>
Tue, 21 Feb 2017 20:14:00 +0000 (21 21:14 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 23 Feb 2017 19:35:36 +0000 (23 20:35 +0100)
treee1df0ed42f3bbac5bafe441aaad90b3d8ced3a3f
parente591591b323772eea733de6027f5e8b50692d0ff
util/cutils: New qemu_strtosz()

Most callers of qemu_strtosz_suffix() pass QEMU_STRTOSZ_DEFSUFFIX_B.
Capture the pattern in new qemu_strtosz().

Inline qemu_strtosz_suffix() into its only remaining caller.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1487708048-2131-17-git-send-email-armbru@redhat.com>
include/qemu/cutils.h
qapi/opts-visitor.c
qemu-img.c
qemu-io-cmds.c
tests/test-cutils.c
util/cutils.c