lguest: clean up warnings in demonstration launcher.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 27 Aug 2010 14:39:48 +0000 (08:39 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 26 Aug 2010 23:09:51 +0000 (08:39 +0930)
commitf846619e7f875b0efa9853b1c821bbc756656d47
tree8d79aeea72a1d66e54b1c7ebf8db39d362ace9d0
parentd4348c678977c7093438bbbf2067c49396ae941b
lguest: clean up warnings in demonstration launcher.

These days the headers we use are in glibc.  If those are too old, you can
add the -I lines to get the kernel headers.

In file included from ../../include/linux/if_tun.h:19,
                 from lguest.c:33:
../../include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
lguest.c: In function ‘setup_tun_net’:
lguest.c:1456: warning: dereferencing pointer ‘sin’ does break strict-aliasing rules
lguest.c:1457: warning: dereferencing pointer ‘sin’ does break strict-aliasing rules
lguest.c:1450: note: initialized from here

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Documentation/lguest/Makefile
Documentation/lguest/lguest.c