From: Ian Campbell Subject: Re: [PATCH 1/2] opw: libxl: add convenience macros to qmp_send() in libxl_qmp.c Date: Mon, 11 Nov 2013 12:19:24 +0000 Message-ID: <1384172364.8909.52.camel@kazak.uk.xensource.com> References: <1384164538-25656-1-git-send-email-kelleynnn@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1384164538-25656-1-git-send-email-kelleynnn@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Kelley Nielsen Cc: anthony.perard@citrix.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, 2013-11-11 at 02:08 -0800, Kelley Nielsen wrote: > Update qmp_send() in libxl_qmp.c to use the new convenience macros > declared in libxl_internal.h. Uses GC_INIT at the top of the function, > and GC_FREE at the exit. Since GC_INIT returns a libxl__gc by reference > and not by value, remove the address operator from the left of the > variable gc where it is passed as a parameter. > > Signed-off-by: Kelley Nielsen > Suggested-by: Anthony PERARD I'm dubious about whether qmp_send should be creating itself a gc rather than receiving one as a parameter, but given that it does it should use the macros: Acked-by: Ian Campbell and committed. (NB, the tag things are more normally chronological, i.e. suggested-by first, then s-o-b, hence I reordered upon commit). (NB2, I think the OPW tag isn't so useful for the actual commit log, inside the patch prefix i.e. [PATCH OPW ...] would be better, git send-email --subject-preifx='PATCH OPW' would do the trick) Ian