From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEbZV-00071O-DA for qemu-devel@nongnu.org; Thu, 20 Sep 2012 03:53:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEbZU-0002kb-H5 for qemu-devel@nongnu.org; Thu, 20 Sep 2012 03:53:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEbZU-0002kU-8u for qemu-devel@nongnu.org; Thu, 20 Sep 2012 03:53:16 -0400 Message-ID: <505ACB62.7020409@redhat.com> Date: Thu, 20 Sep 2012 09:53:06 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20120917152149.GB6879@in.ibm.com> <20120917152620.GG6879@in.ibm.com> <50587ED6.9040504@redhat.com> <20120920064114.GD5873@in.ibm.com> In-Reply-To: <20120920064114.GD5873@in.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v7 5/5] block: Support GlusterFS as a QEMU block backend. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bharata@linux.vnet.ibm.com Cc: Kevin Wolf , Anthony Liguori , Anand Avati , Vijay Bellur , Stefan Hajnoczi , Amar Tumballi , qemu-devel@nongnu.org, Markus Armbruster , Blue Swirl , Avi Kivity Il 20/09/2012 08:41, Bharata B Rao ha scritto: >> > Would look a bit nicer with strstart() form cutils.c instead of strncmp(). > strstart() works with const char pointers, but I have char pointers here > which I need to modify. You can pass a char* to a function that accepts const char*. In your case, the last argument to strstart would be NULL. Paolo