From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTqKg-0004zZ-5o for qemu-devel@nongnu.org; Thu, 11 Feb 2016 07:26:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTqKd-0008MK-EB for qemu-devel@nongnu.org; Thu, 11 Feb 2016 07:26:50 -0500 From: Michael Tokarev Date: Thu, 11 Feb 2016 15:18:52 +0300 Message-Id: In-Reply-To: References: Subject: [Qemu-devel] [PULL 03/14] qom: Correct object_property_get_int() description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Christian Liebhardt , Michael Tokarev , Alistair Francis From: Alistair Francis 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 Signed-off-by: Christian Liebhardt Signed-off-by: Alistair Francis Signed-off-by: Michael Tokarev --- 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 698827d..33abce9 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, -- 2.1.4