mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
util/cutils: Rename qemu_strtosz() to qemu_strtosz_MiB()
With qemu_strtosz(), no suffix means mebibytes. It's used rarely. I'm going to add a similar function where no suffix means bytes. Rename qemu_strtosz() to qemu_strtosz_MiB() to make the name qemu_strtosz() available for the new function. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <1487708048-2131-16-git-send-email-armbru@redhat.com>
This commit is contained in:
parent
d2734d2629
commit
e591591b32
6 changed files with 24 additions and 24 deletions
|
@ -254,7 +254,7 @@ int64_t qemu_strtosz_suffix(const char *nptr, char **end,
|
|||
return do_strtosz(nptr, end, default_suffix, 1024);
|
||||
}
|
||||
|
||||
int64_t qemu_strtosz(const char *nptr, char **end)
|
||||
int64_t qemu_strtosz_MiB(const char *nptr, char **end)
|
||||
{
|
||||
return qemu_strtosz_suffix(nptr, end, QEMU_STRTOSZ_DEFSUFFIX_MB);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue