summaryrefslogtreecommitdiffstats
path: root/include/qom
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@xilinx.com>2016-01-18 10:42:01 -0800
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:43:57 -0600
commitd60d2acb06e29f493bbcf8774786bee9c06f29fd (patch)
tree4564647216b5c0cfeb70e6cb369a82a5eac05127 /include/qom
parent1a198f72aaede90cd132f4eb0ca9214a78480c03 (diff)
downloadhqemu-d60d2acb06e29f493bbcf8774786bee9c06f29fd.zip
hqemu-d60d2acb06e29f493bbcf8774786bee9c06f29fd.tar.gz
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/qom')
-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 28ded29..1dcf3cc 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -1119,7 +1119,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,
OpenPOWER on IntegriCloud