summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@xilinx.com>2016-01-18 10:42:01 -0800
committerMichael Tokarev <mjt@tls.msk.ru>2016-02-11 15:15:46 +0300
commitb29b47e9b35017428904e0e934700877dfaabe73 (patch)
treeba897a004bb55125546cc321718766b185febe16 /include
parentb8d8e8fde3a442d4cf5c95cb4598b8dcb87b9b3d (diff)
downloadqemu-b29b47e9b35017428904e0e934700877dfaabe73.zip
qom: Correct object_property_get_int() description
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 <christian.liebhardt@keysight.com> Signed-off-by: Christian Liebhardt <christian.liebhardt@keysight.com> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'include')
-rw-r--r--include/qom/object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qom/object.h b/include/qom/object.h
index 698827d948..33abce930b 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,