diff options
author | Markus Armbruster <armbru@redhat.com> | 2017-02-21 21:14:00 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-02-23 20:35:36 +0100 |
commit | 466dea14e677555dd24465aca75d00a3537ad062 (patch) | |
tree | e1df0ed42f3bbac5bafe441aaad90b3d8ced3a3f /qemu-io-cmds.c | |
parent | e591591b323772eea733de6027f5e8b50692d0ff (diff) |
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>
Diffstat (limited to 'qemu-io-cmds.c')
-rw-r--r-- | qemu-io-cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-io-cmds.c b/qemu-io-cmds.c index e415b03cd0..0166cfaa8d 100644 --- a/qemu-io-cmds.c +++ b/qemu-io-cmds.c @@ -140,7 +140,7 @@ static int64_t cvtnum(const char *s) char *end; int64_t ret; - ret = qemu_strtosz_suffix(s, &end, QEMU_STRTOSZ_DEFSUFFIX_B); + ret = qemu_strtosz(s, &end); if (*end != '\0') { /* Detritus at the end of the string */ return -EINVAL; |