From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwW4c-0003h8-Fw for qemu-devel@nongnu.org; Thu, 04 Dec 2014 08:04:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwW4X-0006j0-Ky for qemu-devel@nongnu.org; Thu, 04 Dec 2014 08:03:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwW4X-0006il-Cz for qemu-devel@nongnu.org; Thu, 04 Dec 2014 08:03:53 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sB4D3pAG026074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 4 Dec 2014 08:03:52 -0500 Message-ID: <54805BB5.10900@redhat.com> Date: Thu, 04 Dec 2014 14:03:49 +0100 From: Max Reitz MIME-Version: 1.0 References: <1417697709-13087-1-git-send-email-armbru@redhat.com> In-Reply-To: <1417697709-13087-1-git-send-email-armbru@redhat.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] block: Use g_new0() for a bit of extra type checking List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com On 2014-12-04 at 13:55, Markus Armbruster wrote: > g_new(T, 1) is safer than g_malloc(sizeof(T)), because it returns T * > rather than void *, which lets the compiler catch more type errors. > > Missed in commit 02c4f26. > > Signed-off-by: Markus Armbruster > --- > aio-posix.c | 2 +- > aio-win32.c | 4 ++-- > async.c | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) Thanks, applied to my block-next tree: https://github.com/XanClic/qemu/commits/block-next