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.

Backports commit b29b47e9b35017428904e0e934700877dfaabe73 from qemu
This commit is contained in:
Alistair Francis 2018-02-20 11:52:05 -05:00 committed by Lioncash
parent dfb78118ff
commit a4bf026460
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -968,7 +968,7 @@ void object_property_set_int(struct uc_struct *uc, 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(struct uc_struct *uc, Object *obj, const char *name,