Received: from eggs.gnu.org ([2001:4830:134:3::10]:45675)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from
) id 1ZudSy-0008Sp-Sd
for qemu-devel@nongnu.org; Fri, 06 Nov 2015 04:37:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1ZudSu-0007hx-Rn
for qemu-devel@nongnu.org; Fri, 06 Nov 2015 04:37:52 -0500
Received: from mailout4.w1.samsung.com ([210.118.77.14]:43294)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1ZudSu-0007hm-Lz
for qemu-devel@nongnu.org; Fri, 06 Nov 2015 04:37:48 -0500
Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245])
by mailout4.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTP id <0NXE005UE02WBX60@mailout4.w1.samsung.com> for
qemu-devel@nongnu.org; Fri, 06 Nov 2015 09:37:44 +0000 (GMT)
From: Pavel Fedin
References: <1444739866-14798-1-git-send-email-berrange@redhat.com>
<1444739866-14798-7-git-send-email-berrange@redhat.com>
<563B9A7C.4010000@suse.de> <20151106093128.GA30803@redhat.com>
In-reply-to: <20151106093128.GA30803@redhat.com>
Date: Fri, 06 Nov 2015 12:37:43 +0300
Message-id: <003001d11876$ca2c8d60$5e85a820$@samsung.com>
MIME-version: 1.0
Content-type: text/plain; charset=UTF-8
Content-transfer-encoding: 7bit
Content-language: ru
Subject: Re: [Qemu-devel] [PATCH v4 6/7] qom: replace object property list
with GHashTable
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: "'Daniel P. Berrange'" , =?UTF-8?Q?'Andreas_F=C3=A4rber'?=
Cc: 'Paolo Bonzini' , qemu-devel@nongnu.org, 'Markus Armbruster'
Hello!
> > > - QTAILQ_FOREACH(prop, &obj->parent->properties, node) {
> > > + g_hash_table_iter_init(&iter, obj->parent->properties);
> > > + while (g_hash_table_iter_next(&iter, NULL, (gpointer *)&prop)) {
> >
> > Is this cast needed?
>
> Probably not, as any pointer should coerce to void * without an
> explicit cast, unless it had a 'const' involved.
But after '&' it becomes "**", not just "*", and this implicit conversion
rule doesn't apply any more. "void **" and "something **" are always considered
different.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia