From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48237 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQeCc-0003t7-W8 for qemu-devel@nongnu.org; Thu, 09 Dec 2010 05:58:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQeCb-0006Zg-Rw for qemu-devel@nongnu.org; Thu, 09 Dec 2010 05:58:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQeCb-0006ZI-DY for qemu-devel@nongnu.org; Thu, 09 Dec 2010 05:58:21 -0500 Message-ID: <4D00B68E.2050400@redhat.com> Date: Thu, 09 Dec 2010 11:59:26 +0100 From: Kevin Wolf MIME-Version: 1.0 References: <1291130056-32441-1-git-send-email-stefanha@linux.vnet.ibm.com> <1291130056-32441-3-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1291130056-32441-3-git-send-email-stefanha@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 2/3] block: Introduce path_has_protocol() function List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Anthony Liguori , qemu-devel@nongnu.org Am 30.11.2010 16:14, schrieb Stefan Hajnoczi: > The bdrv_find_protocol() function returns NULL if an unknown protocol > name is given. It returns the "file" protocol when the filename > contains no protocol at all. This makes it difficult to distinguish > between paths which contain a protocol and those which do not. > > Factor out a helper function that tests whether or not a filename has a > protocol. The next patch makes use of this function. > > Signed-off-by: Stefan Hajnoczi This breaks the mingw32 build: /home/kwolf/tmp/win32/qemu/block.c: In function 'path_has_protocol': /home/kwolf/tmp/win32/qemu/block.c:78: warning: implicit declaration of function 'is_windows_drive_prefix' /home/kwolf/tmp/win32/qemu/block.c:78: warning: nested extern declaration of 'is_windows_drive_prefix' /home/kwolf/tmp/win32/qemu/block.c: At top level: /home/kwolf/tmp/win32/qemu/block.c:261: error: static declaration of 'is_windows_drive_prefix' follows non-static declaration /home/kwolf/tmp/win32/qemu/block.c:78: note: previous implicit declaration of 'is_windows_drive_prefix' was here Kevin