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)
commit5fe42d6a3b7029c885df958b190a23582508ff63
tree507ed786e970dc5ec0b0e7c26260b65bded8e6ad
parent8306dde29c324bf90590caaf9a48194c3d8a18f2
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