[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL 03/14] qom: Correct object_property_get_int() descr
From: |
Michael Tokarev |
Subject: |
[Qemu-trivial] [PULL 03/14] qom: Correct object_property_get_int() description |
Date: |
Thu, 11 Feb 2016 15:18:52 +0300 |
From: Alistair Francis <address@hidden>
The description of object_property_get_int() stated that on an error
it returns NULL. This is not the case and the function will return -1
if an error occurs. Update the commented documentation accordingly.
Reported-By: Christian Liebhardt <address@hidden>
Signed-off-by: Christian Liebhardt <address@hidden>
Signed-off-by: Alistair Francis <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
include/qom/object.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/qom/object.h b/include/qom/object.h
index 698827d..33abce9 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -1115,7 +1115,7 @@ void object_property_set_int(Object *obj, int64_t value,
* @name: the name of the property
* @errp: returns an error if this function fails
*
- * Returns: the value of the property, converted to an integer, or NULL if
+ * Returns: the value of the property, converted to an integer, or negative if
* an error occurs (including when the property value is not an integer).
*/
int64_t object_property_get_int(Object *obj, const char *name,
--
2.1.4
- [Qemu-trivial] [PULL 00/14] Trivial patches for 2016-02-11, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 11/14] Passthru CCID card: QOMify, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 02/14] man: virtfs-proxy-helper: Rework awkward sentence, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 08/14] char: fix parameter name / type in BSD codepath, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 03/14] qom: Correct object_property_get_int() description,
Michael Tokarev <=
- [Qemu-trivial] [PULL 07/14] qmp-spec: fix index in doc, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 13/14] Adds keycode 86 to the hid_usage_keys translation table., Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 12/14] s390x: remove s390-zipl.rom, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 14/14] w32: include winsock2.h before windows.h, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 06/14] rdma: remove check on time_spent when calculating mbs, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 10/14] Emulated CCID card: QOMify, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 05/14] qemu-sockets: simplify error handling, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 04/14] cpu: cpu_save/cpu_load is no more, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 09/14] ES1370: QOMify, Michael Tokarev, 2016/02/11
- [Qemu-trivial] [PULL 01/14] remove libtool support, Michael Tokarev, 2016/02/11