aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCao jin <caoj.fnst@cn.fujitsu.com>2015-11-03 10:36:42 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2015-11-06 15:42:38 +0300
commitb30d80546421c6ea919096b596887f496c80af0a (patch)
treeae093fa41904c7731b7ad7cf7ca2d2c514c2a0ee /include
parent9f503153c78a23bcd44409cea64442c4ecd82ea5 (diff)
downloadqemu-b30d80546421c6ea919096b596887f496c80af0a.zip
qemu-b30d80546421c6ea919096b596887f496c80af0a.tar.gz
qemu-b30d80546421c6ea919096b596887f496c80af0a.tar.bz2
qom/object: fix 2 comment typos
Also change the misleading definition of macro OBJECT_CLASS_CHECK Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'include')
-rw-r--r--include/qom/object.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/qom/object.h b/include/qom/object.h
index be7280c..0bb89d4 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -510,16 +510,16 @@ struct TypeInfo
/**
* OBJECT_CLASS_CHECK:
- * @class: The C type to use for the return value.
- * @obj: A derivative of @type to cast.
- * @name: the QOM typename of @class.
+ * @class_type: The C type to use for the return value.
+ * @class: A derivative class of @class_type to cast.
+ * @name: the QOM typename of @class_type.
*
* A type safe version of @object_class_dynamic_cast_assert. This macro is
* typically wrapped by each type to perform type safe casts of a class to a
* specific class type.
*/
-#define OBJECT_CLASS_CHECK(class, obj, name) \
- ((class *)object_class_dynamic_cast_assert(OBJECT_CLASS(obj), (name), \
+#define OBJECT_CLASS_CHECK(class_type, class, name) \
+ ((class_type *)object_class_dynamic_cast_assert(OBJECT_CLASS(class), (name), \
__FILE__, __LINE__, __func__))
/**