aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2015-09-16 18:02:56 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-09-25 12:04:41 +0200
commit4677bb40f809394bef5fa07329dea855c0371697 (patch)
tree7e5eeddf664f1a99802d69e3acf3d8879f9e54fc /qapi
parent48bec07e8de2782fea2ea293998044bef2ab676d (diff)
downloadqemu-4677bb40f809394bef5fa07329dea855c0371697.zip
qemu-4677bb40f809394bef5fa07329dea855c0371697.tar.gz
qemu-4677bb40f809394bef5fa07329dea855c0371697.tar.bz2
utils: rename strtosz to use qemu prefix
Not only it makes sense, but it gets rid of checkpatch warning: WARNING: consider using qemu_strtosz in preference to strtosz Also remove get rid of tabs to please checkpatch. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <1442419377-9309-1-git-send-email-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/opts-visitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qapi/opts-visitor.c b/qapi/opts-visitor.c
index 7ae33b3..cd10392 100644
--- a/qapi/opts-visitor.c
+++ b/qapi/opts-visitor.c
@@ -474,8 +474,8 @@ opts_type_size(Visitor *v, uint64_t *obj, const char *name, Error **errp)
return;
}
- val = strtosz_suffix(opt->str ? opt->str : "", &endptr,
- STRTOSZ_DEFSUFFIX_B);
+ val = qemu_strtosz_suffix(opt->str ? opt->str : "", &endptr,
+ QEMU_STRTOSZ_DEFSUFFIX_B);
if (val < 0 || *endptr) {
error_setg(errp, QERR_INVALID_PARAMETER_VALUE, opt->name,
"a size value representible as a non-negative int64");