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

Submitted by Stefan Weil on Oct. 17, 2012, 5:53 p.m.

Details

Message ID 1350496430-14429-1-git-send-email-sw@weilnetz.de
State Accepted
Headers show

Commit Message

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(+)

Comments

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 hide | download patch | download mbox

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"