[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 2/3] block: Introduce path_has_protocol() functi
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] Re: [PATCH 2/3] block: Introduce path_has_protocol() function |
Date: |
Thu, 09 Dec 2010 11:59:26 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10 |
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 <address@hidden>
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] Re: [PATCH 2/3] block: Introduce path_has_protocol() function,
Kevin Wolf <=