]> git.proxmox.com Git - qemu.git/commit - cutils.c
Introduce strtosz_suffix()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 9 Dec 2010 13:17:24 +0000 (14:17 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Dec 2010 15:10:59 +0000 (16:10 +0100)
commitd8427002dc1be0a9337cde3ef505ee6e57718675
tree507ed786e970dc5ec0b0e7c26260b65bded8e6ad
parentdf2dbb4a508ebea7bcacff3f07caecbae969d528
Introduce strtosz_suffix()

This introduces strtosz_suffix() which allows the caller to specify a
default suffix in case the non default of MB is wanted.

strtosz() is kept as a wrapper for strtosz_suffix() which keeps it's
current default of MB.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
cutils.c
qemu-common.h