.pru_attach and kernel warnings

2008-08-15 Thread Ryan French
Hi everyone, I'm having issues with trying to build my kernel at the moment with my MPLS development code included. I'm trying to build a pr_usrreqs struct and with my attach method I am getting the warning 'initialization from incompatible pointer type', but as far as I can see the way I have

Re: .pru_attach and kernel warnings

2008-08-15 Thread Garrett Wollman
In article [EMAIL PROTECTED], [EMAIL PROTECTED] writes: static int mpls_attach(struct socket *so) The prototype for a protocol attach functions is int (*pru_attach)(struct socket *so, int proto, struct thread *td); (see sys/protosw.h). You don't have to use these arguments, but