Patchwork net/tap-win32: Fix compiler warning caused by missing include statement

login
register
mail settings
Submitter Stefan Weil
Date Oct. 17, 2012, 5:53 p.m.
Message ID <1350496430-14429-1-git-send-email-sw@weilnetz.de>
Download mbox | patch
Permalink /patch/192114/
State Accepted
Headers show

Comments

Stefan Weil - Oct. 17, 2012, 5:53 p.m.
The include file for net_init_tap was missing:

net/tap-win32.c:703:
 warning: no previous prototype for ‘net_init_tap’

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 net/tap-win32.c |    1 +
 1 file changed, 1 insertion(+)
Stefan Hajnoczi - Oct. 19, 2012, 8:39 a.m.
On Wed, Oct 17, 2012 at 07:53:50PM +0200, Stefan Weil wrote:
> The include file for net_init_tap was missing:
> 
> net/tap-win32.c:703:
>  warning: no previous prototype for ‘net_init_tap’
> 
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  net/tap-win32.c |    1 +
>  1 file changed, 1 insertion(+)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan

Patch

diff --git a/net/tap-win32.c b/net/tap-win32.c
index f1801e2..22dad3f 100644
--- a/net/tap-win32.c
+++ b/net/tap-win32.c
@@ -29,6 +29,7 @@ 
 #include "tap.h"
 
 #include "qemu-common.h"
+#include "clients.h"            /* net_init_tap */
 #include "net.h"
 #include "sysemu.h"
 #include "qemu-error.h"