Skip to content
Snippets Groups Projects
Commit b29b47e9 authored by Alistair Francis's avatar Alistair Francis Committed by Michael Tokarev
Browse files

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: default avatarChristian Liebhardt <christian.liebhardt@keysight.com>
Signed-off-by: default avatarChristian Liebhardt <christian.liebhardt@keysight.com>
Signed-off-by: default avatarAlistair Francis <alistair.francis@xilinx.com>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent b8d8e8fd
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment