[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH v1 1/1] qom: Correct object_property_get_int() des
From: |
Alistair Francis |
Subject: |
[Qemu-trivial] [PATCH v1 1/1] qom: Correct object_property_get_int() description |
Date: |
Mon, 18 Jan 2016 10:42:01 -0800 |
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>
---
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 4509166..2848f5e 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -1107,7 +1107,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.5.0
- [Qemu-trivial] [PATCH v1 1/1] qom: Correct object_property_get_int() description,
Alistair Francis <=